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

MacPorts noreply at macports.org
Fri Jul 14 01:31:03 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):

 By the way, I have noticed a lag of a few seconds for squid to write the
 PID file:

 {{{
 $ sudo port load squid3
 $ ps -ef | grep squid | grep -v grep
     0  2971     1   0  9:25PM ??         0:00.01 /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
   504  2976  2972   0  9:25PM ??         0:04.10 /opt/local/sbin/squid -s
 -N
 $ cat /opt/local/var/run/squid/squid.pid
 cat: /opt/local/var/run/squid/squid.pid: No such file or directory
 $ cat /opt/local/var/run/squid/squid.pid
 2976
 # the correct PID file appears a few seconds later
 }}}

 Could this PID file lagginess be related to the underlying problem?

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


More information about the macports-tickets mailing list