systemd_service/examples/nginx.service

17 lines
284 B
SYSTEMD
Raw Permalink Normal View History

[Unit]
2024-06-14 22:12:00 +08:00
Description=Nginx
Documentation=https://nginx.org
After=network-online.target firewalld.service
Wants=network-online.target
[Service]
Type=forking
2024-06-14 22:12:00 +08:00
Group=root
User=root
ExecStart=/opt/nginx/1.26.0/sbin/nginx
Restart=always
2024-06-14 22:12:00 +08:00
PrivateTmp=true
[Install]
WantedBy=multi-user.target