mirror of
https://github.com/kakwa/uts-server
synced 2024-12-04 23:15:54 +01:00
adding systemd service and tmp file crap
This commit is contained in:
parent
e372e96b70
commit
66c1fa9b7d
9
goodies/rhel/uts-server
Normal file
9
goodies/rhel/uts-server
Normal 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"
|
1
goodies/rhel/uts-server.conf
Normal file
1
goodies/rhel/uts-server.conf
Normal file
@ -0,0 +1 @@
|
||||
d /run/ldapcherryd 0755 ldapcherry ldapcherry -
|
17
goodies/rhel/uts-server.service
Normal file
17
goodies/rhel/uts-server.service
Normal 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
|
Loading…
Reference in New Issue
Block a user