Thursday, March 06, 2014

Upstart Basic Commands


Disables Nginx so that dpkg does not re-enable it when Nginx is upgraded:
sudo update-rc.d -f nginx disable

Add Nginx to default runlevels:
update-rc.d nginx defaults

Disable Service
sudo sh -c "echo 'manual' > /etc/init/nginx.override"

Manual Service Control
sudo service nginx start
sudo service nginx restart
sudo service nginx stop

Or
sudo start nginx
sudo stop nginx
sudo status nginx


http://askubuntu.com/questions/177041/nginx-disable-autostart

No comments: