Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Start the Squid web proxy as a service at start up' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Start the Squid web proxy as a service at start up
Authored by: NetBSD on Aug 05, '03 12:26:57PM

After a little research, I finally got this to work. There is most likely a way to make this work the the XML StartupParameters.plist included in the Squid.sit, but, for me, why use XML when plain text will work. Here is what I did:
# rm -f /Library/StartupItems/Squid/StartupParameters.plist
# pico -w /Library/StartupItems/Squid/StartupParameters.plist
{
Description = "Squid Web Cache Proxy Server";
Provides = ("Squid");
Requires = ("Network");
Uses = ("Network");
OrderPreferece = "none";
}
# chmod 644 /Library/StartupItems/Squid/StartupParameters.plist
#shutdown -r now


Squid started when it rebooted. It looks as if SystemStarter won't start things properly if StartupParameters.plist is set 755, and I added in the network option so that SystemStarter knows to start the network before starting Squid.

Enjoy.

---
Microsoft is no the answer.
It is the question.
The answer is NO!



[ Reply to This | # ]
Start the Squid web proxy as a service at start up
Authored by: lsloan on Jul 20, '04 12:11:52AM
I changed the StartupParameters.plist similarly, too:

{
  Description    = "Squid proxy service";
  Provides       = ("Squid");
  Requires       = ("Network", "Resolver");
  Uses           = ("Network");
  OrderPreferece = "none";
  Messages =
  {
    start = "Starting Squid proxy service";
    stop  = "Stopping Squid proxy service";
  };
}
I also changed Resources/English.lproj/Localizable.strings, though it may not have been necessary:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
        <key>Starting Squid proxy service</key>
        <string>Starting Squid proxy service</string>
</dict>
</plist>
And I changed the Squid script to start squid with the "-s" (syslog) option and without the "-f" (configuration filename) option. My changes are available at http://umich.edu/~lsloan/Squid.tar.gz.

---
--
Lance E Sloan

[ Reply to This | # ]