view 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
line wrap: on
line source

[Unit]
Description=Van logging

[Service]
User=pi
Group=pi
Type=forking
ExecStart=/usr/bin/tmux new-session -s vanlogger -d /home/pi/vanlogger/vanlogger.py
Restart=on-failure

[Install]
WantedBy=multi-user.target