comparison vanlogger.service @ 2:ae0025a7409c

Add systemd service file, copy to /lib/systemd/system/vanlogger.service then run sudo systemctl enable vanlogger
author Daniel O'Connor <darius@dons.net.au>
date Sun, 19 Nov 2017 18:26:32 +1030
parents
children 40a3b403a096
comparison
equal deleted inserted replaced
1:f77cc29d0b47 2:ae0025a7409c
1 [Unit]
2 Description=Van logging
3
4 [Service]
5 User=pi
6 Group=pi
7 Type=forking
8 ExecStart=/usr/bin/tmux new-session -s vanlogger -d /home/pi/vanlogger/vanlogger.py
9 Restart=on-failure
10
11 [Install]
12 WantedBy=multi-user.target