Problem with starting agent on Mac OSX as startup item

Hi,

I can start both server & client on Mac OS X from terminal with like that /TeamCity/bin/runAll.sh start. However, when I create startup item to start teamcity during system startup teamcity server starts but agent is exiting with an error.

Error message: nohup: can't detach from console: Inappropriate ioctl for device
OS: Mac OS X 10.6.7
TeamCIty: 6.5.1 (build 17834)
Startup script:

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

# The start subroutine
StartService() {
    ConsoleMessage "Starting teamcity"
    su myuser -c '/TeamCity/bin/runAll.sh start'

}

# The stop subroutine
StopService() {

 ConsoleMessage "Stopping teamcity"
 su myuser -c '/TeamCity/bin/runAll.sh stop'

}

# The restart subroutine
RestartService() {
    StopService
    StartService
}

RunService "$1"




Do you know what is the problem and how to solve/workaround it? As i mentioned it is only the agent that is crashing, server starts just fine.

Regards!
2 comments
Comment actions Permalink

Hello,

   Sorry for the delay with the answer.
   Please, try removing "nohup" from TeamCity/buildAgent/bin/agent.sh script.

   Hope this helps,
   KIR

0
Comment actions Permalink

Hi,

Removing "nohup" from the scipt solved the problem.

Regards!

0

Please sign in to leave a comment.