annotate vanlogger.service @ 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
children 40a3b403a096
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
a831b92ffd5e Add systemd service file (for real)
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
1 [Unit]
a831b92ffd5e Add systemd service file (for real)
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
2 Description=Van logging
a831b92ffd5e Add systemd service file (for real)
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
3
a831b92ffd5e Add systemd service file (for real)
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
4 [Service]
a831b92ffd5e Add systemd service file (for real)
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
5 User=pi
a831b92ffd5e Add systemd service file (for real)
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
6 Group=pi
a831b92ffd5e Add systemd service file (for real)
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
7 Type=forking
a831b92ffd5e Add systemd service file (for real)
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
8 ExecStart=/usr/bin/tmux new-session -s vanlogger -d /home/pi/vanlogger/vanlogger.py
a831b92ffd5e Add systemd service file (for real)
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
9 Restart=on-failure
a831b92ffd5e Add systemd service file (for real)
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
10
a831b92ffd5e Add systemd service file (for real)
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
11 [Install]
a831b92ffd5e Add systemd service file (for real)
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
12 WantedBy=multi-user.target
a831b92ffd5e Add systemd service file (for real)
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
13