Simon Marsh
ac6145392c
All checks were successful
continuous-integration/drone/push Build is passing
34 lines
884 B
Desktop File
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
|