|
From: Leif M. <le...@ta...> - 2010-02-03 14:23:18
|
Blake, I answered this in your other thread. I am actually yet to meet another Leif face to face. I think I am the only one in Japan ;-) Cheers, Leif On Wed, Feb 3, 2010 at 7:21 AM, Blake Rodgers <bro...@ev...> wrote: > Hello Leif, > > I have a brother named Leif! I am using a service on a Mac OS X 10.5, using > the Jar wrapper integration method 4. The service script usually (not > always) has a problem stopping the service, saying its not running, when in > fact it is. Then the stale pid file gets deleted by the script. I check and > see the process (wrapper) running in the Activity Monitor, and it has the > same process ID as in the wrapper's pid file. I get the same result for the > "status" argument.. I checked the bug list, and a similar bug is listed as > fixed. I need to be able to script the command in a bash script. On Windows, > to directly stop and remove the service, I run "net stop [servicename]" and > "sc delete [servicename]", but these don't work on Mac. I use launchd to > launch the service at startup, which works. Running launchctl "list" lists > the wrapper, but the launchctl doesn't stop it. Running "Kill <pid>" works, > but I'll have to write a script to pick up the Tanuki's pid file number > first, which is what your script is doing, but it declares it "stale"…. > > Thanks, > > Blake Rogers > > Eveo |