[CalendarServer-dev] [CalendarServer] #327: Unable to start CalendarServer from StartupItem in Mac OS X 10.5.6

CalendarServer trac at macosforge.org
Sun Mar 22 20:00:49 PDT 2009


#327: Unable to start CalendarServer from StartupItem in Mac OS X 10.5.6
---------------------------------+------------------------------------------
 Reporter:  tonykambo@…          |       Owner:  wsanchez@…        
     Type:  Defect               |      Status:  new               
 Priority:  3: Important         |   Milestone:  CalendarServer-1.x
Component:  Calendar Server      |    Severity:  Other             
 Keywords:  startup startupitem  |  
---------------------------------+------------------------------------------
 Have defined the following in an attempt to have CalendarServer launch
 automatically as a StartupItem.


 I followed the instructions here for creating Startup Items:

 [http://developer.apple.com/DOCUMENTATION/MacOSX/Conceptual/BPSystemStartup/Articles/StartupItems.html]

 It fails to start with the following error message in the Console Messages
 log:


 {{{
 23/03/09 1:40:38 PM com.apple.SystemStarter[30]
 ./Users/myusername/Developer/iCalServer/run: line 634: USER: unbound
 variable
 }}}

 Would appreciate if this can be resolved. I have included the startup
 files below.

 ----


 == '''/Library/StartupItems/iCalServer/iCalServer''' ==


 ----

 {{{
 #!/bin/sh
 . /etc/rc.common

 StartService ()
 {
         ./Users/myusername/Developer/iCalServer/run -d
 }

 StopService ()
 {
         ./Users/myusername/Developer/iCalServer/run -k
 }

 RestartService ()
 {
         ./Users/myusername/Developer/iCalServer/run -r
 }

 RunService "$1"
 }}}



 ----


 == '''/Library/StartupItems/iCalServer/StartupParameters.plist''' ==


 ----


 {{{
 <?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>iCalServer</string>
         <key>Messages</key>
         <dict>
                 <key>start</key>
                 <string>Starting iCalServer</string>
                 <key>stop</key>
                 <string>Stopping iCalServer</string>
         </dict>
         <key>OrderPreference</key>
         <string>Last</string>
         <key>Provides</key>
         <array>
                 <string>iCalServer</string>
         </array>
         <key>Requires</key>
         <array>
                 <string>Network</string>
         </array>
 </dict>
 </plist>
 }}}



 ----


 == '''/Library/StartupItems/iCalServer/Resources/English.lproj''' ==


 ----



 {{{
 <?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>Starting iCalServer</key>
         <string>Starting iCalServer</string>
         <key>Stopping iCalServer</key>
         <string>Stopping iCalServer</string>
 </dict>
 </plist>
 }}}

 ----

-- 
Ticket URL: <http://trac.calendarserver.org/ticket/327>
CalendarServer </>
HTTP/WebDAV/CalDAV Server


More information about the calendarserver-dev mailing list