Tag: launchctl
$sudo launchctrl load -w xxx.plist
※Mountain Lion組み込みのApacheは先にとめておくこと。
$sudo launchctl unload -w xxx.plist
root権限で動作するものは一般ユーザーでは表示されないので注意。
$ sudo launchctrl list
$ launchctl list PID Status Label 2004 - 0x7fcd0ac358b0.anonymous.launchctl 1913 - 0x7fcd0ac355b0.anonymous.Google Chrome H 764 - 0x7fcd0ac352b0.anonymous.Google Chrome H 754 - 0x7fcd0ac36050.anonymous.Google Chrome H
~/Library/LaunchAgents | Per-user agents provided by the user. |
/Library/LaunchAgents | Per-user agents provided by the administrator. |
/Library/LaunchDaemons | System-wide daemons provided by the administrator. |
/System/Library/LaunchAgents | Per-user agents provided by Mac OS X. |
/System/Library/LaunchDaemons | System-wide daemons provided by Mac OS X. |
-w Overrides the Disabled key and sets it to false. In previous versions, this option would modify the configuration file. Now the state of the Disabled key is stored elsewhere on-disk.