30 lines
671 B
Desktop File
30 lines
671 B
Desktop File
##########################################################################
|
|
# dn42promsrv example systemd service file
|
|
##########################################################################
|
|
|
|
[Unit]
|
|
Description=DN42 Prometheus Stats Server
|
|
After=network.target
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
[Service]
|
|
User=promsrv
|
|
Group=promsrv
|
|
Type=simple
|
|
Restart=on-failure
|
|
# service hardening
|
|
ProtectSystem=strict
|
|
NoNewPrivileges=yes
|
|
ProtectControlGroups=yes
|
|
PrivateTmp=yes
|
|
PrivateDevices=yes
|
|
DevicePolicy=closed
|
|
MemoryDenyWriteExecute=yes
|
|
#
|
|
ExecStart=/usr/local/bin/dn42promsrv
|
|
|
|
#########################################################################
|
|
# end of file
|