Skip to content

Instantly share code, notes, and snippets.

View joshado's full-sized avatar

Thomas Haggett joshado

View GitHub Profile
@joshado
joshado / gist:1058433
Created July 1, 2011 12:26 — forked from dctanner/gist:4515
Graceful nginx init.d script
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemon
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /etc/nginx/nginx.conf
# config: /etc/sysconfig/nginx
@joshado
joshado / nginx
Created July 1, 2011 12:24 — forked from mig/nginx
nginx init.d script
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: nginx init.d script for Ubuntu 8.10 and lesser versions.
# Description: nginx init.d script for Ubuntu 8.10 and lesser versions.
### END INIT INFO