Skip to content
Snippets Groups Projects
Commit 8a6039ce authored by Markus Schade's avatar Markus Schade
Browse files

switch systemd service to notify and add system protection directives

parent 02c37a03
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,21 @@ Documentation=man:nsd(8)
After=network.target
[Service]
Type=simple
Type=notify
Restart=always
ExecStart=/usr/sbin/nsd -d
ExecReload=/usr/sbin/nsd-control reload
ExecReload=/bin/kill -HUP $MAINPID
CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_CHROOT
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
ProtectHome=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
[Install]
WantedBy=multi-user.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment