1
mirror of https://git.burble.com/burble.dn42/dn42regsrv.git synced 2024-02-26 20:28:04 +01:00
dn42regsrv/contrib/dn42regsrv.service
2019-03-06 19:21:33 +00:00

34 lines
884 B
Desktop File

##########################################################################
# dn42regsrv example systemd service file
##########################################################################
[Unit]
Description=DN42 Registry API Server
After=network.target
[Install]
WantedBy=multi-user.target
[Service]
User=regsrv
Group=registry
Type=simple
Restart=on-failure
# service hardening
ProtectSystem=strict
ReadOnlyPaths=/home/regsrv/go/src/git.dn42.us/burble/dn42regsrv/StaticRoot
ReadWritePaths=/home/regsrv/registry
NoNewPrivileges=yes
ProtectControlGroups=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
MemoryDenyWriteExecute=yes
#
ExecStart=/home/regsrv/go/bin/dn42regsrv \
-s /home/regsrv/go/src/git.dn42.us/burble/dn42regsrv/StaticRoot \
-d /home/regsrv/registry
#########################################################################
# end of file