I have a sevrer in which lsws is not reloading on changes. I tried the binary wrapper and when you issue the restart script from cpanel, it shows it giving signal and whatnot but the pids are same and it does not reload.
This has been a problem when new domains and subdomains are added.
Here is example
root@sl [~]# nano -w /scripts/restartsrv_httpd*
root@sl [~]# ps -u nobody
PID TTY TIME CMD
9829 ? 00:00:02 lshttpd
9832 ? 00:00:02 lshttpd
10688 ? 00:00:00 lshttpd
10689 ? 00:00:00 lshttpd
10690 ? 00:00:00 lshttpd
10691 ? 00:00:00 lshttpd
10692 ? 00:00:00 lshttpd
10693 ? 00:00:00 lshttpd
10694 ? 00:00:00 lshttpd
10695 ? 00:00:00 lshttpd
root@sl [~]# /scripts/restartsrv_httpd
root@sl [~]# ps -u nobody
PID TTY TIME CMD
9829 ? 00:00:02 lshttpd
10688 ? 00:00:00 lshttpd
10689 ? 00:00:00 lshttpd
10690 ? 00:00:01 lshttpd
10691 ? 00:00:00 lshttpd
10692 ? 00:00:00 lshttpd
10693 ? 00:00:00 lshttpd
10694 ? 00:00:00 lshttpd
10695 ? 00:00:00 lshttpd
10917 ? 00:00:00 lshttpd
10918 ? 00:00:00 lshttpd
10919 ? 00:00:00 lshttpd
10920 ? 00:00:00 lshttpd
10921 ? 00:00:00 lshttpd
10923 ? 00:00:00 lshttpd
10924 ? 00:00:00 lshttpd
10925 ? 00:00:00 lshttpd
root@sl [~]# ps -u nobody
PID TTY TIME CMD
9829 ? 00:00:02 lshttpd
10692 ? 00:00:00 lshttpd
10917 ? 00:00:00 lshttpd
10918 ? 00:00:00 lshttpd
10919 ? 00:00:00 lshttpd
10920 ? 00:00:00 lshttpd
10921 ? 00:00:00 lshttpd
10923 ? 00:00:00 lshttpd
10924 ? 00:00:00 lshttpd
10925 ? 00:00:00 lshttpd
Seems like it cannot kill the process or something.
I tried auto reload on changes and got same effect
This has been a problem when new domains and subdomains are added.
Here is example
root@sl [~]# nano -w /scripts/restartsrv_httpd*
root@sl [~]# ps -u nobody
PID TTY TIME CMD
9829 ? 00:00:02 lshttpd
9832 ? 00:00:02 lshttpd
10688 ? 00:00:00 lshttpd
10689 ? 00:00:00 lshttpd
10690 ? 00:00:00 lshttpd
10691 ? 00:00:00 lshttpd
10692 ? 00:00:00 lshttpd
10693 ? 00:00:00 lshttpd
10694 ? 00:00:00 lshttpd
10695 ? 00:00:00 lshttpd
root@sl [~]# /scripts/restartsrv_httpd
root@sl [~]# ps -u nobody
PID TTY TIME CMD
9829 ? 00:00:02 lshttpd
10688 ? 00:00:00 lshttpd
10689 ? 00:00:00 lshttpd
10690 ? 00:00:01 lshttpd
10691 ? 00:00:00 lshttpd
10692 ? 00:00:00 lshttpd
10693 ? 00:00:00 lshttpd
10694 ? 00:00:00 lshttpd
10695 ? 00:00:00 lshttpd
10917 ? 00:00:00 lshttpd
10918 ? 00:00:00 lshttpd
10919 ? 00:00:00 lshttpd
10920 ? 00:00:00 lshttpd
10921 ? 00:00:00 lshttpd
10923 ? 00:00:00 lshttpd
10924 ? 00:00:00 lshttpd
10925 ? 00:00:00 lshttpd
root@sl [~]# ps -u nobody
PID TTY TIME CMD
9829 ? 00:00:02 lshttpd
10692 ? 00:00:00 lshttpd
10917 ? 00:00:00 lshttpd
10918 ? 00:00:00 lshttpd
10919 ? 00:00:00 lshttpd
10920 ? 00:00:00 lshttpd
10921 ? 00:00:00 lshttpd
10923 ? 00:00:00 lshttpd
10924 ? 00:00:00 lshttpd
10925 ? 00:00:00 lshttpd
Seems like it cannot kill the process or something.
I tried auto reload on changes and got same effect