Hello
I've installed Squid 3.4.12 from ports. It works fine, but I can't use /usr/local/etc/rc.d/squid to stop or restart it.
As you see the process's pid changed, but they didn't stop.
I can run
I've installed Squid 3.4.12 from ports. It works fine, but I can't use /usr/local/etc/rc.d/squid to stop or restart it.
/usr/local/etc/rc.d/squid stop removes the pid file at /var/run but it doesn't stop processes:
Code:
root@mail:/usr/local/etc/rc.d # ./squid start
Starting squid.
root@mail:/usr/local/etc/rc.d # ps ax | grep squid
66331 - Ss 0:00.00 /usr/local/sbin/squid -f /usr/local/etc/squid/squid.conf
66333 - S 0:00.07 (squid-1) -f /usr/local/etc/squid/squid.conf (squid)
66335 - S 0:00.02 (logfile-daemon) /var/log/squid/access.log (log_file_daemon)
66338 1 S+ 0:00.00 grep squid
root@mail:/usr/local/etc/rc.d # ./squid stop
Stopping squid.
Waiting for PIDS: 66333.
root@mail:/usr/local/etc/rc.d # ps ax | grep squid
66331 - Ss 0:00.00 /usr/local/sbin/squid -f /usr/local/etc/squid/squid.conf
66362 - S 0:00.07 (squid-1) -f /usr/local/etc/squid/squid.conf (squid)
66363 - S 0:00.02 (logfile-daemon) /var/log/squid/access.log (log_file_daemon)
66366 1 S+ 0:00.00 grep squid
As you see the process's pid changed, but they didn't stop.
I can run
#killall squid but it isn't right way.