[squid-users] Re: Start squid using launchd on Mac OS X

From: Steve Hoelzer <shoelzer@dont-contact.us>
Date: Tue, 26 Jul 2005 10:26:18 -0500

> 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
Received on Tue Jul 26 2005 - 09:26:23 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:03 MDT