Skip to content

Instantly share code, notes, and snippets.

git fetch --prune --tags

@beiersi
beiersi / nginx-init-script
Created November 11, 2013 07:46
nginx启动脚本,更改自nginx deb包,替换原来的init-nginx-script
#!/bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $local_fs $remote_fs $network $syslog $named
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon
@beiersi
beiersi / init-nginx-script
Created November 7, 2013 09:06
- 转的别人写的,来自 https://library.linode.com/web-servers/nginx/installation/ubuntu-12.04-precise-pangolin#sph_create-an-init-script-to-manage-nginx ubuntu 12.04 下的nginx启动脚本 sudo cp this_file /etc/init.d/nginx sudo update-rc.d -f nginx defaults
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon