Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

NGINX systemd service file

[Unit]
Description=The NGINX HTTP and reverse proxy server
After=syslog.target network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target

[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/usr/sbin/nginx -s reload
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target
Source by www.nginx.com #
 
PREVIOUS NEXT
Tagged: #NGINX #systemd #service #file
ADD COMMENT
Topic
Name
2+4 =