To start the sleepwatcher as a daemon you'll need to run the following command: launchctl load ~/Library/LaunchAgents/de. s /System/Library/CoreServices/Menu\ Extras/nu/Contents/Resources/CGSession -suspend usr/local/opt/sleepwatcher/sbin/sleepwatcher If you decide to run sleepwatcher as a daemon, then you'll need to create or modify (in case you download the program from the web) a plist file that works as a configuration file to start a daemon, the plist file that I modify looks like: With this option you'll need to run sleepwatcher manually on every logoff, restart or shutdown. The command needs to be between quotation marks Must not take longer than 15 seconds because after this timeout the sleep mode is forced by the system. Maybe you'll need to change the path to sleepwatcherĮxecute sleepcommand when the Mac is put to sleep mode. Running by command line: /usr/local/opt/sleepwatcher/sbin/sleepwatcher -s "/System/Library/CoreServices/Menu\ Extras/nu/Contents/Resources/CGSession -suspend" &
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |