Skip to content

Instantly share code, notes, and snippets.

@edymerchk
Created February 18, 2014 14:46
Show Gist options
  • Select an option

  • Save edymerchk/9072329 to your computer and use it in GitHub Desktop.

Select an option

Save edymerchk/9072329 to your computer and use it in GitHub Desktop.
#init.d service for nginx
wget -O init-deb.sh http://library.linode.com/assets/660-init-deb.sh
sudo mv init-deb.sh /etc/init.d/nginx
sudo chmod +x /etc/init.d/nginx
sudo /usr/sbin/update-rc.d -f nginx defaults
#after that you have:
sudo /etc/init.d/nginx stop
sudo /etc/init.d/nginx start
sudo /etc/init.d/nginx restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment