Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Simple StartupItem...

Simple StartupItem...
Thread Tools
genevish
Mac Enthusiast
Join Date: Jan 1999
Location: Marietta, GA, USA
Status: Offline
Reply With Quote
Oct 26, 2004, 10:15 PM
 
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.
Scott Genevish
scott AT genevish DOT org
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 08:00 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,