aboutsummaryrefslogtreecommitdiffstats
path: root/roles/doorputer/files/lockserver.service
diff options
context:
space:
mode:
Diffstat (limited to 'roles/doorputer/files/lockserver.service')
-rw-r--r--roles/doorputer/files/lockserver.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/doorputer/files/lockserver.service b/roles/doorputer/files/lockserver.service
new file mode 100644
index 0000000..a09666d
--- /dev/null
+++ b/roles/doorputer/files/lockserver.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Lockserver
+
+[Service]
+Type=simple
+User=doorman
+WorkingDirectory=/home/doorman
+ExecStartPre=/home/doorman/lockserver/init.sh
+ExecStart=/home/doorman/lockserver/lockd.py
+StandardOutput=syslog
+StandardError=inherit
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target