Skip to content

Instantly share code, notes, and snippets.

@bandicoot86
Created October 8, 2013 18:54
Show Gist options
  • Save bandicoot86/6889667 to your computer and use it in GitHub Desktop.
Save bandicoot86/6889667 to your computer and use it in GitHub Desktop.
Restore nginx in init.d folder
# Download nginx startup script
wget -O init-deb.sh http://library.linode.com/assets/660-init-deb.sh
# Move the script to the init.d directory & make executable
sudo mv init-deb.sh /etc/init.d/nginx
sudo chmod +x /etc/init.d/nginx
# Add nginx to the system startup
sudo /usr/sbin/update-rc.d -f nginx defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment