From 4c223b741d6a6e0eacba07b5ec8711b9f11e3f89 Mon Sep 17 00:00:00 2001 From: jj-uk <10943625+jj-uk@users.noreply.github.com> Date: Fri, 22 Dec 2017 19:16:05 +0000 Subject: [PATCH] Updated Install as a daemon (markdown) --- Install-as-a-daemon.md | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/Install-as-a-daemon.md b/Install-as-a-daemon.md index d63baaf..508eb66 100644 --- a/Install-as-a-daemon.md +++ b/Install-as-a-daemon.md @@ -94,25 +94,6 @@ Optional: * Run from another directory: `sudo sysrc plexpy_dir="DIRECTORY"` -## FreeNAS -Instructions by [Supa on the FreeNAS forums](https://forums.freenas.org/index.php?threads/how-to-install-plexpy-in-a-freenas-9-3-jail.38589/#post-234202). - -This assumes PlexPy is installed to `/usr/local/share/` as per installation instructions, and user is `root`. - -To automate the PlexPy script just do this in the jail shell (in root directory): -* Make sure PlexPy is shutdown. `PlexPy > Settings > Shutdown` -* Ensure user permissions are correct: `chown -R root:wheel /usr/local/share/plexpy` -* Copy init script: `cp /usr/local/share/plexpy/init-scripts/init.freenas /etc/rc.d/plexpy` -* Enable at boot: `sysrc plexpy_enable="YES"` -* Set user to run: `sysrc plexpy_user="root"` -* To start `service plexpy start` - * You can use `service plexpy [start | stop | restart | status]` to start/stop/restart or check the status of the PlexPy service - -Optional: -* If you need to change user: `sysrc plexpy_user="USERNAME"` - * Set user permissions for the plexpy directory: `chown -R USERNAME:GROUPNAME /usr/local/share/plexpy` -* Run from another directory: `sysrc plexpy_dir="DIRECTORY"` - ## FreeNAS (FreshPorts pkg install) * pkg install plexpy * pkg update && pkg upgrade @@ -141,5 +122,23 @@ Finally, either restart the jail via the FreeNAS GUI, or start the service manua * service plexpy start Plexpy is available at: -* http://:8181 +* http:// jail ip : 8181 +## FreeNAS (git clone) +Instructions by [Supa on the FreeNAS forums](https://forums.freenas.org/index.php?threads/how-to-install-plexpy-in-a-freenas-9-3-jail.38589/#post-234202). + +This assumes PlexPy is installed to `/usr/local/share/` as per installation instructions, and user is `root`. + +To automate the PlexPy script just do this in the jail shell (in root directory): +* Make sure PlexPy is shutdown. `PlexPy > Settings > Shutdown` +* Ensure user permissions are correct: `chown -R root:wheel /usr/local/share/plexpy` +* Copy init script: `cp /usr/local/share/plexpy/init-scripts/init.freenas /etc/rc.d/plexpy` +* Enable at boot: `sysrc plexpy_enable="YES"` +* Set user to run: `sysrc plexpy_user="root"` +* To start `service plexpy start` + * You can use `service plexpy [start | stop | restart | status]` to start/stop/restart or check the status of the PlexPy service + +Optional: +* If you need to change user: `sysrc plexpy_user="USERNAME"` + * Set user permissions for the plexpy directory: `chown -R USERNAME:GROUPNAME /usr/local/share/plexpy` +* Run from another directory: `sysrc plexpy_dir="DIRECTORY"`