I tried to remove php5-fpm from init (aka upstart) on my Lubuntu OS with the command:

sudo update-rc.d -f php5-fpm remove

but the symlink is still in /etc/init.d/; indeed php is started at boot.

What could have caused this issue, and how can I manually remove it from the boot in such a way that I can start/stop it using sudo service php5-fpm start/stop?

  • Why it was downvoted? – Marco Sulla Dec 10 '13 at 22:08

Ubuntu uses upstart for managing services. The service configuration is at /etc/init/php5-fpm.conf. Don't delete this file, it will just be recreated when the package is updated. Instead, create the file /etc/init/php5-fpm.override with the contents


Then you can start and stop it with start php5-fpm and stop php5-fpm but it won't be automatically started at boot. This is documented in the upstart cookbook.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.