gentoo/www-servers/nginx/files/nginx-r2.service
Louis Sautier 1e3385f539
www-servers/nginx: restore reload command for nginx.service
Since 1.28.0 and the introduction of nginx-r2.service, the reload
command failed:
```
Failed to reload nginx.service: Job type reload is not applicable for
unit nginx.service.
```

Closes: https://github.com/gentoo/gentoo/pull/44611
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
2025-11-13 21:34:57 +01:00

14 lines
275 B
Desktop File

[Unit]
Description=The NGINX HTTP and reverse proxy server
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/run/nginx/nginx.pid
RuntimeDirectory=nginx
ExecStart=nginx
ExecReload=kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target