Updated Install as a daemon (markdown)

jj-uk
2017-12-22 19:16:05 +00:00
parent 302a26bdc0
commit 4c223b741d

@@ -94,25 +94,6 @@ Optional:
* Run from another directory: `sudo sysrc plexpy_dir="DIRECTORY"` * 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) ## FreeNAS (FreshPorts pkg install)
* pkg install plexpy * pkg install plexpy
* pkg update && pkg upgrade * 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 * service plexpy start
Plexpy is available at: Plexpy is available at:
* http://<jail ip>: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"`