Mercurial > ~darius > hgwebdir.cgi > vanlogger
annotate vanlogger.service @ 18:9e538d88816f
Don't bother with tmux so systemd can restart us
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Fri, 23 Feb 2018 16:19:11 +1030 |
parents | 40a3b403a096 |
children | efe1954da8ca |
rev | line source |
---|---|
2
ae0025a7409c
Add systemd service file, copy to
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
1 [Unit] |
ae0025a7409c
Add systemd service file, copy to
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
2 Description=Van logging |
ae0025a7409c
Add systemd service file, copy to
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
3 |
ae0025a7409c
Add systemd service file, copy to
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
4 [Service] |
ae0025a7409c
Add systemd service file, copy to
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
5 User=pi |
ae0025a7409c
Add systemd service file, copy to
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
6 Group=pi |
18
9e538d88816f
Don't bother with tmux so systemd can restart us
Daniel O'Connor <darius@dons.net.au>
parents:
7
diff
changeset
|
7 Type=simple |
9e538d88816f
Don't bother with tmux so systemd can restart us
Daniel O'Connor <darius@dons.net.au>
parents:
7
diff
changeset
|
8 ExecStart=/home/pi/vanlogger/vanlogger.py |
2
ae0025a7409c
Add systemd service file, copy to
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
9 Restart=on-failure |
ae0025a7409c
Add systemd service file, copy to
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
10 |
ae0025a7409c
Add systemd service file, copy to
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
11 [Install] |
18
9e538d88816f
Don't bother with tmux so systemd can restart us
Daniel O'Connor <darius@dons.net.au>
parents:
7
diff
changeset
|
12 WantedBy=multi-user.target |