mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-27 01:50:28 +00:00
fdb75ba5fe
Add systemd's Type=notify support by sending information about master process PID around forks. Add some hardening option to service unit.
18 lines
327 B
SYSTEMD
18 lines
327 B
SYSTEMD
[Unit]
|
|
Description=HTTP/2 proxy
|
|
Documentation=man:nghttpx
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
ExecStart=@bindir@/nghttpx --conf=/etc/nghttpx/nghttpx.conf
|
|
ExecReload=/bin/kill --signal HUP $MAINPID
|
|
KillSignal=SIGQUIT
|
|
PrivateTmp=yes
|
|
ProtectHome=yes
|
|
ProtectSystem=full
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|