I'm trying to run a simple CalendarServer daemon on my home network. If I start it up by hand, all is well. (Great! and thanks for everyone's hard work in bringing this project to fruition). I'm now trying to use launchd to start the server when the computer starts. I'm relying on the man pages for launchd and the tutorial at MacResearch (http://www.macresearch.org/ tutorial_backups_with_launchd). Here is the property file I'm using:
<?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>com.metabang.calserver</string> <key>LowPriorityIO</key> <true/> <key>Program</key> <string>/repository/CalendarServer/run</string> <key>OnDemand</key> <false/> <key>RunAtLoad</key> <true/> <key>WorkingDirectory</key> <string> /repository/CalendarServer </string> <key>RootDirectory</key> <string> /repository/CalendarServer </string> </dict> </plist>
I've placed this in /System/Library/LaunchDaemons/ com.metabang.calserver.plist When the computer starts, I get lots of messages like this :
Jan 27 19:35:23 roberta launchd: com.metabang.calserver: exited with exit code: 127 Jan 27 19:35:23 roberta launchd: com.metabang.calserver: respawning too quickly! throttling Jan 27 19:35:23 roberta launchd: com.metabang.calserver: 8 more failures without living at least 60 seconds will cause job removal Jan 27 19:35:23 roberta launchd: com.metabang.calserver: will restart in 10 seconds
in the system log. If I invoke launchctl manually via
launchctl load load /System/Library/LaunchDaemons/ com.metabang.calserver.plist
things seem to work fine. Any advice appreciated... thanks, -- Gary Warren King, metabang.com Cell: (413) 885 9127 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM
Did you notice conf/launchd.plist in the source tree? That's the plist that we use. -wsv On Jan 27, 2007, at 5:11 PM, Gary King wrote:
I'm trying to run a simple CalendarServer daemon on my home network. If I start it up by hand, all is well. (Great! and thanks for everyone's hard work in bringing this project to fruition). I'm now trying to use launchd to start the server when the computer starts. I'm relying on the man pages for launchd and the tutorial at MacResearch (http://www.macresearch.org/ tutorial_backups_with_launchd). Here is the property file I'm using:
<?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>com.metabang.calserver</string> <key>LowPriorityIO</key> <true/> <key>Program</key> <string>/repository/CalendarServer/run</string> <key>OnDemand</key> <false/> <key>RunAtLoad</key> <true/> <key>WorkingDirectory</key> <string> /repository/CalendarServer </string> <key>RootDirectory</key> <string> /repository/CalendarServer </string> </dict> </plist>
I've placed this in /System/Library/LaunchDaemons/ com.metabang.calserver.plist
When the computer starts, I get lots of messages like this :
Jan 27 19:35:23 roberta launchd: com.metabang.calserver: exited with exit code: 127 Jan 27 19:35:23 roberta launchd: com.metabang.calserver: respawning too quickly! throttling Jan 27 19:35:23 roberta launchd: com.metabang.calserver: 8 more failures without living at least 60 seconds will cause job removal Jan 27 19:35:23 roberta launchd: com.metabang.calserver: will restart in 10 seconds
in the system log.
If I invoke launchctl manually via
launchctl load load /System/Library/LaunchDaemons/ com.metabang.calserver.plist
things seem to work fine.
Any advice appreciated...
thanks, -- Gary Warren King, metabang.com Cell: (413) 885 9127 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM
_______________________________________________ calendarserver-users mailing list calendarserver-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/calendarserver-users
Gary, On 28/01/2007, at 2.11, Gary King wrote:
I've placed this in /System/Library/LaunchDaemons/ com.metabang.calserver.plist
Never put stuff like this in /System ! The /System folder might be changed on a system update - /Library does not. It should go in /Library/LaunchDaemons Best, Jakob Peterhänsel "Be a part of the Love Generation - carry a smile, not a gun." - JP, May 2006 Email: jakob@hjemme.dk AIM: Marook Phone: +45 29687104
A big Thank You to both you and Wilfredo. I'll try this out later today. On Jan 28, 2007, at 4:23 AM, Jakob Peterhänsel wrote:
Gary,
On 28/01/2007, at 2.11, Gary King wrote:
I've placed this in /System/Library/LaunchDaemons/ com.metabang.calserver.plist
Never put stuff like this in /System ! The /System folder might be changed on a system update - /Library does not.
It should go in /Library/LaunchDaemons
Best,
Jakob Peterhänsel
"Be a part of the Love Generation - carry a smile, not a gun." - JP, May 2006
Email: jakob@hjemme.dk AIM: Marook Phone: +45 29687104
_______________________________________________ calendarserver-users mailing list calendarserver-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/calendarserver-users
-- Gary Warren King, metabang.com Cell: (413) 885 9127 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM
participants (3)
-
Gary King
-
Jakob Peterhänsel
-
Wilfredo Sánchez Vega