adding systemd service and tmp file crap
This commit is contained in:
parent
e372e96b70
commit
66c1fa9b7d
|
@ -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"
|
|
@ -0,0 +1 @@
|
||||||
|
d /run/ldapcherryd 0755 ldapcherry ldapcherry -
|
|
@ -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
|
Loading…
Reference in New Issue