Mercurial > ~darius > hgwebdir.cgi > vanlogger
changeset 5:a831b92ffd5e
Add systemd service file (for real)
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Fri, 22 Dec 2017 13:04:11 +0100 |
parents | a7e9775b33f6 |
children | 10ae66476521 |
files | vanlogger.service |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vanlogger.service Fri Dec 22 13:04:11 2017 +0100 @@ -0,0 +1,13 @@ +[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 +