diff --git a/Install-as-a-daemon.md b/Install-as-a-daemon.md index 1ff6c74..aa3d2ae 100644 --- a/Install-as-a-daemon.md +++ b/Install-as-a-daemon.md @@ -33,7 +33,7 @@ If you need to specify a version of Python, edit `com.drzoidberg33.plexpy.plist` * 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` +This assumes PlexPy is installed to `/usr/local/share/` 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` @@ -43,3 +43,18 @@ This assumes PlexPy is installed to `/usr/local/` as per installation instructio Optional: * If you need to change user: `sudo sysrc plexpy_user="USERNAME"` * Run from another directory: `sudo sysrc plexpy_dir="DIRECTORY"` + +## FreeNAS +Instructions by [Supa](https://forums.freenas.org/index.php?threads/how-to-install-plexpy-in-a-freenas-9-3-jail.38589/#post-234202) on the FreeNAS forums. + +This assumes PlexPy is installed to `/usr/local/share/` as per installation instructions. + +To automate the PlexPy script just do this in the jail shell (in root directory): +* Type: `cp /usr/local/share/plexpy/init-scripts/init.freenas /etc/rc.d/plexpy` +* Type: `chmod 777 /etc/rc.d/plexpy` +* Type: `edit /etc/rc.d/plexpy` + * Edit the following line: `${plexpy_user:="xxxx"}` (I just used 'root') + * Save and close the file +* Type: `edit /etc/rc.conf` and add `plexpy_enable="YES"` to the file. +* Restart the PlexPy jail + * You can use `service plexpy [start | stop | restart | status]` \ No newline at end of file