root以外のユーザーとしてps-watcherを実行する方法

root以外のユーザーとしてps-watcherを実行する方法

コマンドは

ps-watcher $HOME/ps-watcher.cfg

一般ユーザーとして実行しましたが、次のエラーが発生しました。

Unable to open file handle FH for file '/var/run/ps-watcher.pid': Permission denied

ps-watcher.cfgの内容は次のとおりです。

[tint2]
occurs = none
action = /usr/bin/tint2

皮肉なことに、マニュアルページにはps-watcherをrootとして実行する必要はありません。

There's nothing in the ps command or ps-watcher, that requires one to run this daemon as root.

間違いを避ける方法? /var/run/ps-watcher.pidでパスを変更できますか?

ベストアンサー1

おすすめ記事