systemd_service/examples/nginx.service

16 lines
284 B
SYSTEMD
Raw Normal View History

[Unit]
Description=nginx
After=network.target
[Service]
Type=forking
User=root
ExecStart=/opt/nginx/1.26.0/sbin/nginx
ExecReload=/opt/nginx/1.26.0/sbin/nginx -s reload
ExecStop=/opt/nginx/1.26.0/sbin/nginx -s stop
PrivateTmp=true
Restart=always
[Install]
WantedBy=multi-user.target