mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-07-30 15:39:35 -04:00
See [systemd.exec(5)](https://man.archlinux.org/man/systemd.exec.5) to find out what the options mean!
28 lines
528 B
Desktop File
28 lines
528 B
Desktop File
[Unit]
|
|
Description=ntfy server
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=ntfy
|
|
Group=ntfy
|
|
ExecStart=/usr/bin/ntfy serve --no-log-dates
|
|
ExecReload=/bin/kill --signal HUP $MAINPID
|
|
Restart=on-failure
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
LimitNOFILE=10000
|
|
PrivateDevices=true
|
|
ProtectClock=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelLogs=true
|
|
RestrictRealtime=true
|
|
ProtectHostname=true
|
|
|
|
# These will be added in a future update.
|
|
# ProtectSystem=full
|
|
# PrivateTmp=true
|
|
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|