From ed1ddbcf0ef55622f553337cf6c372aaae0f4edf Mon Sep 17 00:00:00 2001 From: Workantile Date: Thu, 9 Apr 2015 19:38:29 +0000 Subject: [PATCH] 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 --- Makefile | 1 + doorsd.service | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 doorsd.service diff --git a/Makefile b/Makefile index b1818bd..731a52d 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/doorsd.service b/doorsd.service new file mode 100644 index 0000000..5d62830 --- /dev/null +++ b/doorsd.service @@ -0,0 +1,9 @@ +[Unit] +Description=Workantile Doors RFID Daemon + +[Service] +ExecStart=/usr/bin/doorsd +Restart=always + +[Install] +WantedBy=multi-user.target