Problem:
I've changed the /etc/init.d/httpd
Now, when i mannualy restart apache all works fine.
I just want to know what command directadmin runs hourly (that restarts apache). Is it 'service httpd restart' or reload, condrestart...?
Thanks in advance,
[root@lisbon ~]# service httpd reload
Reloading httpd: [FAILED]
[root@lisbon ~]# service httpd restart
Stopping httpd: [FAILED]
warning, got duplicate tcp line.
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
[FAILED]
I've changed the /etc/init.d/httpd
...
restart)
stop
waitforexit "httpd" 20
kill -9 `netstat -lnp | grep 80 | awk '{print $7}' | awk -F "/" '{print $1}'`
kill -9 `netstat -lnp | grep 443 | awk '{print $7}' | awk -F "/" '{print $1}'`
kill -9 `netstat -lnp | grep 80 | awk '{print $7}' | awk -F "/" '{print $1}'`
kill -9 `netstat -lnp | grep 443 | awk '{print $7}' | awk -F "/" '{print $1}'`
start
;;
..
Now, when i mannualy restart apache all works fine.
I just want to know what command directadmin runs hourly (that restarts apache). Is it 'service httpd restart' or reload, condrestart...?
Thanks in advance,