summaryrefslogtreecommitdiff
path: root/debian/tacplusd.service
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tacplusd.service')
-rw-r--r--debian/tacplusd.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/tacplusd.service b/debian/tacplusd.service
new file mode 100644
index 0000000..c6ffd4f
--- /dev/null
+++ b/debian/tacplusd.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Tacacs+ D-Bus Daemon
+
+[Service]
+Type=forking
+EnvironmentFile=/var/run/tacplus.env
+ExecReload=/bin/kill -SIGHUP $MAINPID
+ExecStart=/usr/sbin/tacplusd $CONFIG /run/tacplusd-default.pid
+KillSignal=SIGTERM
+PIDFile=/run/tacplusd-default.pid
+Restart=on-failure
+# should be maximum socket timeout permitted
+TimeoutStopSec=30
+
+[Install]
+WantedBy=multi-user.target