From 401734c18729843a5ccd3f821209eb32c6d1bf69 Mon Sep 17 00:00:00 2001 From: jj-uk <10943625+jj-uk@users.noreply.github.com> Date: Fri, 22 Dec 2017 19:05:45 +0000 Subject: [PATCH] Updated Install as a daemon (markdown) --- Install-as-a-daemon.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/Install-as-a-daemon.md b/Install-as-a-daemon.md index 79b7814..7437564 100644 --- a/Install-as-a-daemon.md +++ b/Install-as-a-daemon.md @@ -111,4 +111,35 @@ To automate the PlexPy script just do this in the jail shell (in root directory) 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"` \ No newline at end of file +* Run from another directory: `sysrc plexpy_dir="DIRECTORY"` + +## FreeNAS (freshports pkg install) +* pkg install plexpy +* pkg update && pkg upgrade +* pkg install -y plexpy + +Auto-start when the jail starts: +* sysrc plexpy_enable="YES" + +Set the user for which plexpy will run as: +* sysrc plexpy_user="root" + +If you're using FreeNAS 11.1, and you're installing into a 'warden' jail (e.g. created with the 'old' FreeNAS GUI), you'll need to install older versions of sqlite3 and py-sqlite3: + +* portsnap fetch +* portsnap extract + +* cd /usr/ports/databases/sqlite3 +* make deinstall +* make install clean ALLOW_UNSUPPORTED_SYSTEM=true + +* cd /usr/ports/databases/py-sqlite3 +* make deinstall +* make install clean ALLOW_UNSUPPORTED_SYSTEM=true + +Finally, either restart the jail via the FreeNAS GUI, or start the service manually: +* service plexpy start + +Plexpy is available at: +* http://:8181 +