[Nut-upsuser] Apple Mac slave

Charles Lepple clepple at gmail.com
Thu Jun 15 13:01:12 UTC 2017


On Jun 14, 2017, at 1:54 PM, Robbie van der Walle <rvanderwalle at gmail.com> wrote:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd <http://www.apple.com/DTDs/PropertyList-1.0.dtd>">
> <plist version="1.0">
> <dict>
>         <key>Label</key>
>         <string>org.networkupstools.upsmon</string>
>         <key>RunAtLoad</key>
>         <true/>
>         <key>ProgramArguments</key>
>         <array>
>                 <string>/sw/sbin/upsmon</string>
>                 <string>-D</string> <!-- "-D" keeps upsmon from going into the background -->
>         </array>
>         <key>KeepAlive</key>
>         <true/>
>         <key>SuccessfulExit</key>
>         <false/> <!-- Do not respawn at shutdown time -->
> </dict>
> </plist>
> 
> 
> sudo launchctl load /Library/LaunchDaemons/org.networkupstools.upsmon.plist
> 
> Doesn’t return an error. But when I check of upsmon is running I don’t see it running. 

This works for me on 10.12.5. (There is a warning that SuccessfulExit is an "unknown key" from launchd.)

$ sudo launchctl list|fgrep -v com.app
PID     Status  Label
...
8981    0       org.networkupstools.upsmon
...

Does anything for upsmon show up in system.log in Console.app?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20170615/6908f27b/attachment.html>


More information about the Nut-upsuser mailing list