UJP - com.apple.xpc.launchd[1] (com.apple.powerchime): Service only ran for 0 seconds. Pushing respawn out by 10 seconds

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

  • カテゴリ MacBook Air の最新配信
  • RSS
  • RDF
  • ATOM

ブログ - com.apple.xpc.launchd[1] (com.apple.powerchime): Service only ran for 0 seconds. Pushing respawn out by 10 seconds

com.apple.xpc.launchd[1] (com.apple.powerchime): Service only ran for 0 seconds. Pushing respawn out by 10 seconds

カテゴリ : 
Apple » MacBook Air » 2011 13inch/BCP
ブロガー : 
ujpblog 2019/5/12 18:33
 system.logに,1分間に2回程度の頻度で次のようなログが.
com.apple.xpc.launchd[1] (com.apple.powerchime): Service only ran for 0 seconds.
 Pushing respawn out by 10 seconds

 PowerChimeというサービスが,0秒しか起動しないことが原因.10秒毎に再起動させるとのこと.

 これは,PowerChimeという常駐プロセスがあって,MacBookに電源ケーブルが接続されて給電されると音がなるのだけれど,それを制御しているプログラム.USB-Cで給電できるタイプのMacBookだと従来のMagSafeみたいにケーブル側にランプがつかないので,音で知らせるためのもの.

 常駐プロセスはlaunchctlで管理されているので状況を確認.
$ launchctl list | grep -i powerchime🆑
-	0	com.apple.powerchime
$
 登録されているがプロセスが起動してない.
 powerchimeはユーザアプリなので,LaunchAgents配下に設定ファイルがある.確認してみる.
$ ls -la /System/Library/LaunchAgents/com.apple.powerchime.plist🆑
-rw-r--r-- 1 root wheel 775 10 13  2017 /System/Library/LaunchAgents/com.apple.powerchime.plist
$
 設定してある中身も確認.
$ cat /System/Library/LaunchAgents/com.apple.powerchime.plist🆑
<?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>LaunchEvents</key>
	<dict>
		<key>com.apple.notifyd.matching</key>
		<dict>
			<key>com.apple.system.powersources.source</key>
			<dict>
				<key>Notification</key>
				<string>com.apple.system.powersources.source</string>
			</dict>
		</dict>
	</dict>
	<key>LimitLoadToSessionType</key>
	<array>
		<string>LoginWindow</string>
		<string>Aqua</string>
	</array>
	<key>Label</key>
	<string>com.apple.powerchime</string>
	<key>Program</key>
	<string>/System/Library/CoreServices/PowerChime.app/Contents/MacOS/
PowerChime</string>
	<key>ProcessType</key>
	<string>Interactive</string>
</dict>
</plist>
$
 /System/Library/CoreServices/PowerChime.appというのがアプリ本体のようなので,起動してみる.
$ open /System/Library/CoreServices/PowerChime.app/🆑
$
 起動しない模様.
 音なんてならなくて良いので,サービスを停止する.
$ launchctl unload /System/Library/LaunchAgents/com.apple.powerchime.plist🆑
/System/Library/LaunchAgents/com.apple.powerchime.plist: Operation not permitted
 while System Integrity Protection is engaged
$
 ユーザサービスだがroot権限が必要な模様.sudoで停止してみる.

$ sudo launchctl unload /System/Library/LaunchAgents/com.apple.powerchime.plist🆑
Password:
/System/Library/LaunchAgents/com.apple.powerchime.plist: Could not find specified
 service
$
 どうも,System Integrity Protecton (SIP)という機能で守られていて,rootユーザでもシステムに関する設定を変更できない模様.
 SIPをOFFにして次のようにすれば良いのだけれど,SIPをオフにするにはOSをリカバリモードで再起動する必要があるのでリモートからだと手が出ないな...

sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.powerchime.plist

トラックバック


広告スペース
Google