我使用 Homebrew 安装了 sleepwatcher。一切似乎都运行良好,以下是输出:
josh@Macbuech:~/Documents/Work/Access4All/projects/a4aa2/src$ brew install sleepwatcher
==> Downloading https://homebrew.bintray.com/bottles/sleepwatcher-2.2.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring sleepwatcher-2.2.el_capitan.bottle.tar.gz
==> Caveats
For SleepWatcher to work, you will need to read the following:
/usr/local/Cellar/sleepwatcher/2.2/ReadMe.rtf
Ignore information about installing the binary and man page,
but read information regarding setup of the launchd files which
are installed here:
/usr/local/Cellar/sleepwatcher/2.2/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist
/usr/local/Cellar/sleepwatcher/2.2/de.bernhard-baehr.sleepwatcher-20compatibility.plist
These are the examples provided by the author.
To have launchd start sleepwatcher now and restart at login:
brew services start sleepwatcher
==> Summary
答案1
您brew service
是否先安装?如果没有,则只需安装一次,
brew tap homebrew/services
之后你应该能够
brew services start sleepwatcher
没有任何错误。
希望这可以帮助。