OPNsense Forum

Archive => 15.7 Legacy Series => Topic started by: Jack V on July 31, 2015, 01:53:29 pm

Title: How-to start/stop lighttpd correctly from ssh/shell?
Post by: Jack V on July 31, 2015, 01:53:29 pm
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!
Title: Re: How-to start/stop lighttpd correctly from ssh/shell?
Post by: franco on July 31, 2015, 03:52:51 pm
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
Title: Re: How-to start/stop lighttpd correctly from ssh/shell?
Post by: Jack V on July 31, 2015, 07:10:21 pm
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 :-\
Title: Re: How-to start/stop lighttpd correctly from ssh/shell?
Post by: weust on July 31, 2015, 11:10:58 pm
"restart" kinda gives that away, fitch ;-)
Title: Re: How-to start/stop lighttpd correctly from ssh/shell?
Post by: Jack V on August 01, 2015, 03:51:37 pm
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?
Title: Re: How-to start/stop lighttpd correctly from ssh/shell?
Post by: franco on August 02, 2015, 07:15:53 pm
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.