LaunchDaemon for TeamCity 6.5 not working on OSX

Hi

I have setup team city 6.5.2 on OSX 10.6.8.  The app starts up perfectly using runAll.sh start.  I searched for autostart documentation and found the following document describing how to start the service using a launch daemon plist file.

http://confluence.jetbrains.net/display/TCD6/Autostart+TeamCity+on+Mac

I followed this to the T and am using the exact plist file provided.  I verified the path to my install dir is correct at /Library/TeamCity. I can start the launchdaemon perfectly by running the following command from the terminal:

launchctl load /Library/LaunchDaemons/jetbrains.teamcity.server.plist



Yet when I restart the mac TeamCity never starts.  If I clear the logs dir prior to rebooting the directory is still empty at startup.  Is there some change between 6.0.X and 6.5.X that I should be aware of?  Any help is greatly appreciated!

Thanks!
Travis Bader
2 comments
Comment actions Permalink

Here is my current plist file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>WorkingDirectory</key>
    <string>/Library/TeamCity</string>
    <key>Debug</key>
    <false/>
    <key>Label</key>
    <string>jetbrains.teamcity.server</string>
    <key>OnDemand</key>
    <false/>
    <key>KeepAlive</key>
    <true/>
    <key>ProgramArguments</key>
    <array>
        <string>bin/teamcity-server.sh</string>
        <string>run</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>StandardErrorPath</key>
    <string>logs/launchd.err.log</string>
    <key>StandardOutPath</key>
    <string>logs/launchd.out.log</string>
</dict>
</plist>

0
Comment actions Permalink

I found the issued.  Permissions on the file were incorrect.  OSX requires that only root has permissions to the plist file.  Executing the following command fixed the issue for me.

sudo chown root /Library/LaunchDaemons/jetbrains.teamcity.server.plist

0

Please sign in to leave a comment.