adding systemd service and tmp file crap

This commit is contained in:
kakwa 2016-09-12 22:52:47 +02:00
parent e372e96b70
commit 66c1fa9b7d
3 changed files with 27 additions and 0 deletions

9
goodies/rhel/uts-server Normal file
View File

@ -0,0 +1,9 @@
OPTIONS="-d -c /etc/uts-server/uts-server.cfg"
# if run on unprivileged port
USER="uts-server"
# if run on privileged port
# (please, set run_as_user param
# in configiration file to a non root user)
#USER="root"

View File

@ -0,0 +1 @@
d /run/ldapcherryd 0755 ldapcherry ldapcherry -

View File

@ -0,0 +1,17 @@
[Unit]
Description=UTS-Server RFC 3161 Time-Stamp Server
After=network.target
Wants=network.service
[Service]
Type=forking
PIDFile=/var/run/uts-server/uts-server.pid
User=$USER
EnvironmentFile=/etc/sysconfig/uts-server
ExecStart=/usr/bin/uts-server $OPTIONS -p /var/run/uts-server/uts-server.pid
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target