changeset 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 f77cc29d0b47
children 40a3b403a096
files vanlogger.service
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vanlogger.service	Sun Nov 19 18:26:32 2017 +1030
@@ -0,0 +1,12 @@
+[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