OK, so for those of you who know Unix better than me (which is probably most of you) this post will be like teaching your granny to suck eggs, but for the rest of us, it took me some working out how to stop and start the cruisecontrol server instance on the mac…
You see, on windows, I just press ctrl+c and the process terminates so you can then restart the sever. Well, on the mac, that doesn’t happen; if you ctrl+c, the server instance still runs. So, thanks to some friendly assistance, I found out how to kill the server. What you need to do first is type ps -e
. This will list all the processes running. The one you are looking for will look something like this:
3267 p2 S 0.15.38 /System/Library/Frameworks/JavaVM.framework/Home/bin/java -Djavax.management.build
.
When you have that, note the PID, and then type kill -9 XXXX
where XXXX is the pid you found in the previous step.
Quick update to this:
after a quick look around I noticed there was a file generated call cc.pid in the cruisecontrol directory when it starts – a question back to the unix folks – how do i write something like this:
[read file contents of cc.pid] | kill -9 [whatever the contents of cc.pid was]?
kill -9 $(cat cc.pid)
kill -9 `cat cc.pid`