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

sudo start nginx
sudo stop nginx
sudo status nginx

No comments: