diff --git a/Install-as-a-daemon.md b/Install-as-a-daemon.md index ee78d0d..db590f7 100644 --- a/Install-as-a-daemon.md +++ b/Install-as-a-daemon.md @@ -29,4 +29,16 @@ If you need to specify a version of Python, edit `com.drzoidberg33.plexpy.plist` * Make sure PlexPy is shutdown. `PlexPy > Settings > Shutdown` * `cp /Applications/PlexPy/init-scripts/init.osx ~/Library/LaunchAgents/com.drzoidberg33.plexpy.plist` * To start PlexPy run `launchctl load ~/Library/LaunchAgents/com.drzoidberg33.plexpy.plist` -* To stop PlexPy run `launchctl unload ~/Library/LaunchAgents/com.drzoidberg33.plexpy.plist` \ No newline at end of file +* To stop PlexPy run `launchctl unload ~/Library/LaunchAgents/com.drzoidberg33.plexpy.plist` + +## FreeBSD +This assumes PlexPy is installed to `/usr/local/` as per installation instructions, and user is _sabnzbd. You can make your own user too: `sudo adduser` + +* Ensure user permissions are correct: `sudo chown -R _sabnzbd:_sabnzbd /usr/local/plexpy` +* Copy init script: `sudo cp /usr/local/plexpy/init-scripts/init.freebsd /usr/local/etc/rc.d/plexpy` +* Enable at boot: `sudo sysrc plexpy_enable="YES"` +* To start `sudo service plexpy start` + +Optional: +* If you need to change user: `sudo sysrc plexpy_user="USERNAME"` +* Run from another directory: `sudo sysrc plexpy_dir="DIRECTORY"`