Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I disable the lighttpd daemon on startup in Ubuntu

I'm setting up lighty according to this guide, and I don't really have an use for the lighttpd daemon that was installed (this is the one that resides in /etc/init.d/lighttpd). I don't want a webserver running all the time, except when I'm working. I want to just call lighttpd -Df lighttpd.conf when I need to.

How can I disable this ?

like image 905
Alain Jacomet Forte Avatar asked Feb 27 '13 18:02

Alain Jacomet Forte


People also ask

How do I stop startup programs in Ubuntu?

To remove startup programs in Ubuntu, follow the given steps. Step 1: Click on “Startup Application” and launch Startup Program Preference. Step 2: From the list of programs, choose the startup program you want to get removed. Step 3: From the top-right side of the window, hit “Remove”.

How do I know if lighttpd is running?

You can also check Lighttpd by visiting the URL http://your-server-ip on your web browser. You should see the Lighttpd default page per the following screen: The main configuration file for Lighttpd is located at /etc/lighttpd/lighttpd.


1 Answers

You can disable lighttpd on boot with the following command.

sudo update-rc.d -f lighttpd remove

This is a script which will remove the lighttpd start up script from the following locations:

/etc/rc0.d
/etc/rc1.d
/etc/rc2.d
/etc/rc3.d
/etc/rc4.d
/etc/rc5.d
/etc/rc6.d
/etc/rcS.d

Hope that helps

like image 56
Kinetic Avatar answered Sep 20 '22 13:09

Kinetic