[CalendarServer] #327: Unable to start CalendarServer from StartupItem in Mac OS X 10.5.6
#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/A...] 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
#327: Unable to start CalendarServer from StartupItem in Mac OS X 10.5.6 --------------------------------+------------------------------------------- Reporter: tonykambo@… | Owner: wsanchez@… Type: Defect | Status: closed Priority: 3: Important | Milestone: CalendarServer-1.x Component: Calendar Server | Severity: Other Resolution: Behaves correctly | Keywords: startup startupitem --------------------------------+------------------------------------------- Changes (by wsanchez@…): * status: new => closed * resolution: => Behaves correctly Comment: The run script isn't meant to be used in a system install. That's for development. You should install the server: {{{ run -i /tmp/dst cd /tmp/dst pax -pe -rw . / }}} Then start the server using `/usr/sbin/caldavd`. -- Ticket URL: <http://trac.calendarserver.org/ticket/327#comment:2> CalendarServer </> HTTP/WebDAV/CalDAV Server
participants (1)
-
CalendarServer