[MacPorts] #54193: squid3+launchd causes multiple runaway processes when run in daemon mode

MacPorts noreply at macports.org
Fri Jul 14 01:27:41 UTC 2017


#54193: squid3+launchd causes multiple runaway processes when run in daemon mode
------------------------+----------------------
  Reporter:  essandess  |      Owner:  jmroot
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:
      Port:  squid3     |
------------------------+----------------------

Comment (by essandess):

 Sorry, using {{{clean}}} didn't work.

 The issue persists after a full uninstall and rebuild with these steps:

 {{{
 port unload squid3
 vi `port file squid3`
 # auto to clean ${pidfile}
 port uninstall squid3
 port clean --dist squid3
 port install squid3
 port load squid3
 }}}

 It took less than a day for the problem to appear, and after changing the
 System Preferences>Network>Location.

 Several runaway squid process were being launched, and the pid file had
 the wrong pid. This is what {{{ps -ef | grep squid | grep -v grep}}} looks
 like write after the runaway problem starts:

 {{{
 ps -ef | grep squid | grep -v grep
     0 16935     1   0  9:02PM ??         0:00.00 /opt/local/sbin/squid -s
     0 16956     1   0  9:02PM ??         0:00.00 /opt/local/sbin/squid -s
   504 17000 16935   0  9:02PM ??         0:06.86 (squid-1) -s
   504 17003 16956   0  9:03PM ??         0:00.12 (squid-1) -s
     0 83825     1   0  9:23AM ??         0:00.03 /opt/local/bin/daemondo
 --label=Squid --start-cmd
 /opt/local/etc/LaunchDaemons/org.macports.Squid/Squid.wrapper start ;
 --stop-cmd /opt/local/etc/LaunchDaemons/org.macports.Squid/Squid.wrapper
 stop ; --restart-cmd
 /opt/local/etc/LaunchDaemons/org.macports.Squid/Squid.wrapper restart ;
 --restart-netchange --pid=fileclean --pidfile
 /opt/local/var/run/squid/squid.pid
     0 83832     1   0  9:23AM ??         0:00.00 /opt/local/sbin/squid -s
   504 83834 83832   0  9:23AM ??         1:59.40 (squid-1) -s
   504 83841 83834   0  9:23AM ??         0:01.07 (logfile-daemon)
 /opt/local/var/squid/logs/access.log

 The only thing that works to stop the runaway squid processes is to add
 the {{{-N}}} flag as described above. The PID file eventually is
 inconsistent with the running squid process, which I believe causes all
 the problems.

--
Ticket URL: <https://trac.macports.org/ticket/54193#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list