[launchd-dev] how to stop gmond

Lajos Papp Lajos_Papp at epam.com
Mon May 11 03:08:53 PDT 2009


Hi,

i just installed ganglia-monitor, and it's postinstall script  
contained the following lines:

#! /bin/sh
launchctl load /Library/LaunchDaemons/com.42quarks.gmond.plist
launchctl start com.42quarks.gmond


the plist contains this:
<?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>EnvironmentVariables</key>
	<dict/>
	<key>KeepAlive</key>
	<true/>
	<key>Label</key>
	<string>com.42quarks.gmond</string>
	<key>Program</key>
	<string>/usr/local/sbin/gmond</string>
	<key>RunAtLoad</key>
	<true/>
	<key>StandardErrorPath</key>
	<string>/dev/null</string>
	<key>StandardOutPath</key>
	<string>/dev/null</string>
</dict>
</plist>

I can see that /usr/local/sbin/gmond process is running and it's  
started by launchd.
My problem is I can't stop the process. If i kill the gmond process by  
hand, of course it's
restarting after a couple of seconds by launchd. But the strange thing  
is that

launchctl list

doesn't displays com.42quarks.gmond. So my question is how can i stop  
this process?


cheers,
lajos



More information about the launchd-dev mailing list