D
D
digam2015-11-05 15:09:41
linux
digam, 2015-11-05 15:09:41

How to remove lighttpd from startup in Ubuntu 15.04?

The task is to start the server manually (sudo service lighttpd start/stop).
The command 'sudo update-rc.d -f lighttpd remove' doesn't work, after restarting the computer the server is active. What can be removed?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ilya Panarin, 2015-11-05
@anyday

sudo update-rc.d lighttpd disable

D
digam, 2015-11-05
@digam

Both answers work (systemctl disable lighttpd, sudo update-rc.d lighttpd disable),
but now I can't start the server after rebooting with
sudo service lighttpd start
Writes:
Loaded: loaded (/lib/systemd/system/lighttpd.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu. 2015-11-05 15:56:23 MSK; 2min 30s ago
Process: 2715 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)
Process: 2709 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 2715 (code=exited, status=255)
Nov. 05 15:56:22 nb systemd[1]: Starting Lighttpd Daemon...
Nov. 05 15:56:22 nb lighttpd[2709]: Syntax OK
Nov. 05 15:56:22 nb systemd[1]: Started Lighttpd Daemon.
Nov. 05 15:56:23 nb lighttpd[2715]: 2015-11-05 15:56:22: (network.c.409...e
Nov 05 15:56:23 nb systemd[1]: lighttpd.service : main process exited,.../a
Nov 05 15:56:23 nb systemd[1]: Unit lighttpd.service entered failed state.
Nov 05 15:56:23 nb systemd[1]: lighttpd.service failed Hint :
Some lines were ellipsized, use -l to show in full,
and if you put everything back, sudo service lighttpd start/stop commands work

A
Alexander Lebedev, 2015-11-05
@zymanch

sudo systemctl disable lighttpd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question