From 18629c52f8d3d411cc52208e74bfbfc5862996d4 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Thu, 4 Oct 2018 18:45:52 +0200 Subject: doorputer: add role to set up doorputer rpi --- roles/doorputer/files/lockserver.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 roles/doorputer/files/lockserver.service (limited to 'roles/doorputer/files/lockserver.service') 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 -- cgit v1.2.1