-1

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?

1
  • Why it was downvoted? Dec 10, 2013 at 22:08

1 Answer 1

2

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

manual

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .