Tertiush / ParadoxIP150

Python-based IP150 interrogator that publishes data and subscribes to control commands to and from an MQTT broker, without using a headless browser.
Other
19 stars 10 forks source link

Plist file to run this as a daemon on OS X #1

Closed Rtaxerxes closed 8 years ago

Rtaxerxes commented 8 years ago

If you want to run this as a daemon on Mac, create a file called local.paradox.plist. Copy and paste the below into the file, editing for the location of your files. Copy the file to /Library/LaunchDaemons/. Run it with: sudo launchctl load /Library/LaunchDaemons/local.paradox.plist Stop it with: sudo launchctl unload /Library/LaunchDaemons/local.paradox.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>Label</key>
            <string>local.paradox</string>
        <key>WorkingDirectory</key>
            <string>/(folder where files are)</string>
        <key>ProgramArguments</key>
        <array>
            <string>/usr/bin/python</string>
            <string>/(folder where files are)/IP150-MQTT.py</string>
        </array>
        <key>RunAtLoad</key>
            <true/>
    </dict>
</plist>
Tertiush commented 8 years ago

Thanks, added it to the readme