Add a systemd service file

This lets us start the doorsd daemon automatically on startup.  We also
configure it to restart if the daemon is ever killed.

Signed-off-by: Workantile <maintainers@workantile.com>
This commit is contained in:
Workantile 2015-04-09 19:38:29 +00:00
parent b587efd49f
commit ed1ddbcf0e
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,7 @@
install:
install -v doors.py /usr/bin/doorsd
install -D -v doorrc /etc/doorrc
install -v doorsd.service /usr/lib/systemd/system/doorsd.service
uninstall:
rm -v /usr/bin/doorsd /etc/doorrc

9
doorsd.service Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Workantile Doors RFID Daemon
[Service]
ExecStart=/usr/bin/doorsd
Restart=always
[Install]
WantedBy=multi-user.target