PDA

Bekijk de volledige versie : how do I kill the port 80 web server?



n00ben
14-01-2007, 15:41
does anyone know how I can stop the asus webserver?

I can kill it with 'kill...' but it instantly restarts

anyone?

kfurge
15-01-2007, 04:01
I tried too, and had the same results. This is indeed very strange. The only thing I can think of is that the web server catches all signals and won't allow itself to be killed. I didn't even think that was possible... I thought a -9 always worked.

Maybe writing a script to send a fast series of killall's to httpd before it can register a signal handler might kill it?

- K.C.

oleo
15-01-2007, 08:33
Kill watchdog to kill restarts. For Oleg firmware I've wrote httpd patch that can move http to other port with setting httpd_lanport nvram variable.

Maybe attached patch will help you.

kfurge
16-01-2007, 03:07
It isn't watchdog. Both of us have killed watchdog (killall -9 watchdog) and yet httpd still keeps springing back to life.

Watchdog was my first thought too...

- K.C.

costinel
16-01-2007, 21:24
It isn't watchdog. Both of us have killed watchdog (killall -9 watchdog) and yet httpd still keeps springing back to life.

Watchdog was my first thought too...

- K.C.

one could strace each existing process while webkilling and catch the one that re-launches the web server
strace is available via ipkg

kfurge
20-01-2007, 02:46
I'm pretty sure it's relaunching itself. Try killing it in rapid succession. It died for me when I did this.

- K.C.

Denmike
23-02-2007, 07:35
Change 80 port to another (8001 for example):

nvram set web_configuration_port=8001
nvram commit

and reboot router