Turning off services.
binary_y2k2 at blueyonder.co.uk
Thu Jul 20 18:19:02 UTC 2006
Andre Haupt wrote:
> Tez wrote:
>> gabrielle harrison and Paul van den Bergen wrote:
>>> Hi All,
>>> for various reasons I have several services such as PostgreSQL and
>>> apache running on my system. I needed them at the time (testing a LAMP
>>> application for a friend to see if it waas suitable for his needs). I
>>> no longer need them at the moment and would like to shut them off
>>> without deleting them. I presume this is just a matter of
>>> removing/disabling the /etc/rc.d files? Or is there a simpler method?
>>> --Dr Paul van den Bergen
>>> Chance favours the prepared mind
>> Yes you have to remove the links in /etc/rc*.d/
>> but an easyer way of doing it is:
>> $ sudo update-rc.d -f [service] remove
>> sudo update-rc.d -f apache remove
>> If you want to re-enable it you can just
>> $ sudo update-rc.d apache defaults 91
> Isnt there something like
> sudo /etc/init.d/postgresql stop?
That will stop the service but only until you reboot or change run-level.
the update-rc.d command stops it from starting in the 1st place.
More information about the kubuntu-users