# HG changeset patch # User Daniel O'Connor # Date 1511078192 -37800 # Node ID ae0025a7409c43ee2b0a0b8ad229853bfe8a7cc8 # Parent f77cc29d0b47219a40d6cafaf9d26c9dc45c65c5 Add systemd service file, copy to /lib/systemd/system/vanlogger.service then run sudo systemctl enable vanlogger diff -r f77cc29d0b47 -r ae0025a7409c vanlogger.service --- /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