tiger's launchd / LaunchDaemons

Questions and Answers : Macintosh : tiger's launchd / LaunchDaemons
Message board moderation

To post messages, you must log in.

AuthorMessage
bjarthur

Send message
Joined: 12 Jun 99
Posts: 2
Credit: 20,640,504
RAC: 14
United States
Message 107478 - Posted: 4 May 2005, 17:21:05 UTC

has anyone figured out how to get boinc to startup automatically in 10.4 using apple's new boot procedure? seems to me one could add a .plist to /Library/LaunchDaemons for boinc, but i'm not familiar enough with the way things work to figure it out. i think doing it this way would be a lot better than adding it to a users login items. particularly for multi-user computers like mine.
ID: 107478 · Report as offensive
jkline

Send message
Joined: 29 Jun 99
Posts: 1
Credit: 12,761
RAC: 0
United States
Message 124705 - Posted: 18 Jun 2005, 0:28:27 UTC
Last modified: 18 Jun 2005, 0:32:30 UTC

Here is a plist for starting boinc with launchd in OS X Tiger 10.4 that seems to work for me.
To have boinc run at startup put this in a file /Library/LaunchDaemons/edu.berkeley.boinc.plist

I don't know what the debug key does, but it seemed like a good idea since i'm new to this whole launchd thing.

Note that I have a symlink /Library/boinc/boinc_current which points to my latest version of the boinc binary.
The paths for working dir and log files may need to change based on your local configuration.

Good luck!



<?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>Label</key>
<string>net.jonfram.boinc.plist</string>
<key>ProgramArguments</key>
<array>
<string>/Library/boinc/boinc_current</string>
</array>
<key>WorkingDirectory</key>
<string>/Library/boinc/ByHost</string>
<key>StandardOutPath</key>
<string>/Library/boinc/ByHost/boinc.log</string>
<key>StandardErrorPath</key>
<string>/Library/boinc/ByHost/boinc.log</string>
<key>OnDemand</key>
<false/>
<key>ServiceDescription</key>
<string>Runs the boinc distributed computing program</string>
<key>Debug</key>
<true/>
</dict>
</plist>
ID: 124705 · Report as offensive

Questions and Answers : Macintosh : tiger's launchd / LaunchDaemons


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.