Mercurial > ~darius > hgwebdir.cgi > vanlogger
annotate vanlogger.service @ 14:aa18210c2703
Improve start/end/days handling
- Allow the user to specify nothing to graph todays data.
- Fix bug when only specifying days.
- When specifying days finish at the end of today.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Thu, 11 Jan 2018 08:43:40 +1030 |
parents | 40a3b403a096 |
children | 9e538d88816f 59cf68be7feb |
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 |
ae0025a7409c
Add systemd service file, copy to
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
7 Type=forking |
ae0025a7409c
Add systemd service file, copy to
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
8 ExecStart=/usr/bin/tmux new-session -s vanlogger -d /home/pi/vanlogger/vanlogger.py |
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] |
ae0025a7409c
Add systemd service file, copy to
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
12 WantedBy=multi-user.target |