Contents
https://www.nginx.com/resources/wiki/start/topics/examples/systemd/
You'll need to add NGINX systemd service file in /lib/systemd/system/nginx.service.
1. history
/usr/sbin/nginx
[Unit] Description=The NGINX HTTP and reverse proxy server After=syslog.target network.target remote-fs.target nss-lookup.target [Service] Type=forking PIDFile=/run/nginx.pid ExecStartPre=/usr/local/sbin/nginx -t ExecStart=/usr/local/sbin/nginx ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s QUIT $MAINPID PrivateTmp=true [Install] WantedBy=multi-user.target