[MacPorts] #33436: Squid3 fails to start with launchctl start, but does start with launchctl stop

MacPorts noreply at macports.org
Fri Mar 2 09:51:39 PST 2012


#33436: Squid3 fails to start with launchctl start, but does start with launchctl
stop
--------------------------------------+-------------------------------------
 Reporter:  dan+macports@…            |       Owner:  jmr@…           
     Type:  defect                    |      Status:  new             
 Priority:  Normal                    |   Milestone:                  
Component:  ports                     |     Version:  2.0.3           
 Keywords:                            |        Port:  squid3          
--------------------------------------+-------------------------------------

Comment(by dan+macports@…):

 Fix proposal:

 {{{
 *** Squid.wrapper       2012/03/02 14:24:40     1.1
 --- Squid.wrapper       2012/03/02 17:42:21
 ***************
 *** 8,13 ****
 --- 8,14 ----
   #
   prefix=/opt

 + logger -i -t daemondo "args=$@"
   #
   # Start
   #
 ***************
 *** 27,32 ****
 --- 28,37 ----
   {
         cd /opt/var/squid
         su -fm root -c "exec /opt/sbin/squid -k shutdown"
 +       su -fm root -c "exec /bin/sh -c \"while /opt/sbin/squid -k check ;
 do
 +               sleep 5
 +       done
 +       exit 0\""
   }

   #

 }}}

 Line 14 is just debugging, but may be useful to keep.
 Gone through the monkey test.

 Launchd restarts daemondo which restarts squid.

-- 
Ticket URL: <https://trac.macports.org/ticket/33436#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list