How-to start/stop lighttpd correctly from ssh/shell?

Started by Jack V, July 31, 2015, 01:53:29 PM

Previous topic - Next topic
I am Dutch, but let me post this in English so others perhaps can benefit from it.

Like the subject says, how can I achieve this? ???

Would like to lockdown the router more by doing so.

Thanks to Deciso B.V. for giving us a fantastic router OS!

Welcome Jack,  :)

# /usr/local/etc/rc.restart_webgui

or root console menu option (11) should do the trick.

Or are you looking for a headless deployment?


Cheers,
Franco

I just want to stop the webgui and only start it when I need todo some configuration.

The rc.restart_webgui doesn't stop the webgui, it (re) starts it only :-\

"restart" kinda gives that away, fitch ;-)
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

If I just kill lighttpd process can I get away with it or does the webgui need to be run for OPNsense to work okay?

I think you can. Use the script provided above to revive the GUI. :)

The use case is not obvious without stating the use case. It definitely makes sense, but I rather write about what is already supported than jumping to inventing new features if I am unsure about the use case.