[X-Unix] How make launchd stop trying to launch nonexistent
program?
Eric F Crist
ecrist at secure-computing.net
Thu Apr 17 06:13:11 PDT 2008
Jerry,
I would punt. Unless this is a production server, just reboot. I'll
keep looking for the 'right' way to do this, however.
Eric
On Apr 17, 2008, at 7:56 AM, Jerry Krinock wrote:
>
> On 2008 Apr, 17, at 5:19, Eric F Crist wrote:
>
>> According to man launchd, a separate launchd process is started for
>> each application started and controlled by launchd. As such, I get
>> the following output:
>>
>> ecrist at swordfish:~-> ps auxwww |grep launch
>> ecrist 110 0.0 0.2 391468 3728 ?? S 6:56PM
>> 0:00.16 /System/Library/CoreServices/AirPort Base Station Agent.app/
>> Contents/MacOS/AirPort Base Station Agent -launchd
>> ecrist 106 0.0 0.0 599792 652 ?? Ss 6:56PM
>> 0:01.05 /sbin/launchd
>> _mdnsresponder 20 0.0 0.1 77312 1264 ?? Ss
>> 6:56PM 0:00.50 /usr/sbin/mDNSResponder -launchd
>> ecrist 1690 0.0 0.0 599780 400 s000 R+ 7:13AM
>> 0:00.00 grep launch
>> root 1 0.0 0.0 600816 560 ?? Ss 6:56PM
>> 0:01.30 /sbin/launchd
>>
>> Do you see your process when you run a ps auxwww?
>
> No, I only see two /sbin/launchd processes, very similar to yours...
>
> Jerrys-Mac-Mini:~ jk$ ps auxww | grep launchd
> nobody 124 0.0 0.0 601068 692 ?? Ss 8:36PM
> 0:00.01 /System/Library/PrivateFrameworks/MobileDevice.framework/
> Versions/A/Resources/usbmuxd -launchd
> jk 91 0.0 0.2 406216 3192 ?? S 8:35PM
> 0:00.14 /System/Library/CoreServices/AirPort Base Station Agent.app/
> Contents/MacOS/AirPort Base Station Agent -launchd
> jk 85 0.0 0.0 599792 560 ?? Ss 8:35PM
> 0:03.78 /sbin/launchd
> _mdnsresponder 17 0.0 0.1 601584 1196 ?? Ss 8:35PM
> 0:00.13 /usr/sbin/mDNSResponder -launchd
> jk 4909 0.0 0.0 599780 464 s001 R+ 5:43AM
> 0:00.00 grep launchd
> root 1 0.0 0.0 600816 592 ?? Ss 8:34PM
> 0:55.65 /sbin/launchd
>
> Actually I believe it is pid=1 which is causing the problem since if
> I examine the complete console output I'm still getting every 10
> seconds,
>
> com.apple.launchd[1] (com.example.BetterAuthorizationSample[4963])
> posix_spawnp("/Library/PrivilegedHelperTools/
> com.example.BetterAuthorizationSample", ...): No such file or
> directory
> com.apple.launchd[1] (com.example.BetterAuthorizationSample[4963])
> Exited with exit code: 1
> com.apple.launchd[1] (com.example.BetterAuthorizationSample)
> Throttling respawn: Will start in 10 seconds
>
> That [1] is indicating the pid.
>
>> HTH
>
> I'm hoping too. I'm also working at the other problem, which is the
> nonexistence of this program that launchd is looking for. Still
> soliciting clues.
>
> Thanks again,
>
> Jerry
> _______________________________________________
> X-Unix mailing list
> X-Unix at listserver.themacintoshguy.com
> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix
-----
Eric F Crist
Secure Computing Networks
More information about the X-Unix
mailing list