Search squid archive

Re: Start squid using launchd on Mac OS X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I'm using squid on Mac OS X 10.4. OS X includes a new program called
> launchd that is supposed to replace cron, RC, xinitd, and other
> methods of controlling what runs when. My problem is that I can't
> get it to start squid automatically at boot.

I figured out the problem. Here's a new plist that works correctly:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple$
<plist version="1.0">
<dict>
       <key>Label</key>
       <string>com.startsquid</string>
       <key>Program</key>
       <string>/sw/sbin/squid</string>
       <key>ProgramArguments</key>
       <array>
               <string>squid</string>
               <string>-N</string>
       </array>
       <key>OnDemand</key>
       <false/>
</dict>
</plist>

The only difference is that I added the 'Program' key with the path to
the squid binary. (Fink <http://fink.sourceforge.net/> installs
software in /sw.)

Now squid starts when I log in and restarts automatically if it dies
or gets killed.

Steve Hoelzer


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux