Debian Codegraph @

debian/ntfy.service

raw
1 [Unit]
2 Description=ntfy server
3 After=network.target
4 Documentation=man:ntfy(1)
5
6 [Service]
7 User=_ntfy
8 Group=_ntfy
9 ExecStart=/usr/bin/ntfy serve --no-log-dates
10 ExecReload=/bin/kill --signal HUP $MAINPID
11 Restart=on-failure
12 LimitNOFILE=10000
13
14 # sandboxing
15 CapabilityBoundingSet=CAP_NET_BIND_SERVICE
16 ConfigurationDirectory=ntfy
17 StateDirectory=ntfy
18 LockPersonality=yes
19 NoNewPrivileges=yes
20 PrivateTmp=yes
21 ProtectHome=yes
22 ProtectControlGroups=yes
23 ProtectKernelLogs=yes
24 ProtectKernelModules=yes
25 ProtectKernelTunables=yes
26 RestrictNamespaces=yes
27 RestrictRealtime=yes
28
29 [Install]
30 WantedBy=multi-user.target