Created
May 14, 2015 09:03
-
-
Save nodegin/559cf8eb14e0260281ee to your computer and use it in GitHub Desktop.
nginx-daemon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=nginx | |
| After=syslog.target network.target remote-fs.target nss-lookup.target | |
| [Service] | |
| Type=forking | |
| TimeoutSec=120 | |
| User=root | |
| Group=root | |
| SyslogIdentifier=nginx | |
| PIDFile=/run/nginx.pid | |
| ExecStartPre=/usr/sbin/nginx -t | |
| ExecStart=/usr/sbin/nginx | |
| ExecReload=/usr/sbin/nginx -s reload | |
| ExecStop=/usr/sbin/nginx -s quit | |
| PrivateTmp=true | |
| [Install] | |
| WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Nginx | |
| After=syslog.target network.target remote-fs.target nss-lookup.target | |
| [Service] | |
| Type=forking | |
| PIDFile=/run/nginx.pid | |
| ExecStartPre=/usr/sbin/nginx -t | |
| ExecStart=/usr/sbin/nginx | |
| ExecReload=/bin/kill -s HUP $MAINPID | |
| ExecStop=/bin/kill -s QUIT $MAINPID | |
| PrivateTmp=true | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment