A
A
account-32017-03-09 18:04:15
Nginx
account-3, 2017-03-09 18:04:15

How to add nginx as a service on Ubuntu 16.04?

Installed nginx on a home laptop with Ubuntu 16.04 from sources and now I can't add nginx as a service to use service nginx start/stop, quickly reboot.
This seems to only work on 14.04 - https://github.com/JasonGiedymin/nginx-init-ubuntu
cd /etc/init.d/
Of the site only offers Ubuntu Upstart at the moment - https://www.nginx.com/resources/ wiki/start/topics/...
I tried to do it as in the instructions - https://www.nginx.com/resources/wiki/start/topics/...
It doesn't work.
How to use this Upstart or is it still right to do it differently?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Falseclock, 2017-03-09
@account-3

update-rc.d nginx defaults

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question