I'm trying to create a simple startup item. I have a folder called "GmailPOPd" in the /Library/StartupItems/ directory. Inside that are the following:
Code:
-rwxr-xr-- 1 root wheel GmailPOPd
drwxr-xr-x 4 root wheel Resources
-rw-r--r-- 1 root wheel StartupParameters.plist
The GmailPOPd file has:
Code:
#!/bin/sh
. /etc/rc.common
ConsoleMessage "Starting GmailPOPd..."
/Library/Application Support/GmailPOPd
The StartupParameters.plist file has:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>GMail POPd</string>
<key>OrderPreference</key>
<string>None</string>
<key>Provides</key>
<array>
<string>GMail POPd</string>
</array>
<key>Uses</key>
<array>
<string>Network</string>
<string>Resolver</string>
</array>
</dict>
</plist>
And the script is in /Library/Application Support. When I try to start it from the command line I get:
Code:
scott$ sudo SystemStarter start GmailPOPd
Welcome to Macintosh.
Unknown service: GmailPOPd
Hangup
I must admit, I don't quite understand what all the pieces are supposed to do, and I'm not finding much help on the net. the best I've found is on Apples Developer site, but it's much more complex than I need.