| 1 |
[Unit] |
| 2 |
Description=ntfy server |
| 3 |
After=network.target |
| 4 |
|
| 5 |
[Service] |
| 6 |
User=ntfy |
| 7 |
Group=ntfy |
| 8 |
ExecStart=/usr/bin/ntfy serve --no-log-dates |
| 9 |
ExecReload=/bin/kill --signal HUP $MAINPID |
| 10 |
Restart=on-failure |
| 11 |
AmbientCapabilities=CAP_NET_BIND_SERVICE |
| 12 |
LimitNOFILE=10000 |
| 13 |
PrivateDevices=true |
| 14 |
ProtectClock=true |
| 15 |
ProtectKernelTunables=true |
| 16 |
ProtectKernelModules=true |
| 17 |
ProtectKernelLogs=true |
| 18 |
RestrictRealtime=true |
| 19 |
ProtectHostname=true |
| 20 |
|
| 21 |
# These will be added in a future update. |
| 22 |
# ProtectSystem=full |
| 23 |
# PrivateTmp=true |
| 24 |
|
| 25 |
|
| 26 |
[Install] |
| 27 |
WantedBy=multi-user.target |