[Unit] Description=ntfy server After=network.target Documentation=man:ntfy(1) [Service] User=_ntfy Group=_ntfy ExecStart=/usr/bin/ntfy serve --no-log-dates ExecReload=/bin/kill --signal HUP $MAINPID Restart=on-failure LimitNOFILE=10000 # sandboxing CapabilityBoundingSet=CAP_NET_BIND_SERVICE ConfigurationDirectory=ntfy StateDirectory=ntfy LockPersonality=yes NoNewPrivileges=yes PrivateTmp=yes ProtectHome=yes ProtectControlGroups=yes ProtectKernelLogs=yes ProtectKernelModules=yes ProtectKernelTunables=yes RestrictNamespaces=yes RestrictRealtime=yes [Install] WantedBy=multi-user.target