Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
15.7 Legacy Series
»
How-to start/stop lighttpd correctly from ssh/shell?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How-to start/stop lighttpd correctly from ssh/shell? (Read 24304 times)
Jack V
Newbie
Posts: 17
Karma: 2
How-to start/stop lighttpd correctly from ssh/shell?
«
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!
Logged
franco
Administrator
Hero Member
Posts: 17605
Karma: 1603
Re: How-to start/stop lighttpd correctly from ssh/shell?
«
Reply #1 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
Logged
Jack V
Newbie
Posts: 17
Karma: 2
Re: How-to start/stop lighttpd correctly from ssh/shell?
«
Reply #2 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
Logged
weust
Hero Member
Posts: 650
Karma: 57
Re: How-to start/stop lighttpd correctly from ssh/shell?
«
Reply #3 on:
July 31, 2015, 11:10:58 pm »
"restart" kinda gives that away, fitch ;-)
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.
Jack V
Newbie
Posts: 17
Karma: 2
Re: How-to start/stop lighttpd correctly from ssh/shell?
«
Reply #4 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?
Logged
franco
Administrator
Hero Member
Posts: 17605
Karma: 1603
Re: How-to start/stop lighttpd correctly from ssh/shell?
«
Reply #5 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.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
15.7 Legacy Series
»
How-to start/stop lighttpd correctly from ssh/shell?