From f9e2dcc9dd8b47c0d2dad025a0fc6562572cd678 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Thu, 12 May 2016 01:04:45 -0700 Subject: [PATCH] Make sure PlexPy is shutdown. --- Install-as-a-daemon.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Install-as-a-daemon.md b/Install-as-a-daemon.md index f7bc0eb..4f7eac9 100644 --- a/Install-as-a-daemon.md +++ b/Install-as-a-daemon.md @@ -3,14 +3,20 @@ These steps are presented as guidelines. Your results may vary, depending on ope ## Windows This will start PlexPy when you login to Windows without the command prompt. +* Make sure PlexPy is shutdown. `PlexPy > Settings > Shutdown` * Create a new shortcut ([screenshot](http://i.imgur.com/CBA2D6f.png)) in your startup folder with * Target: `C:\Python27\pythonw.exe C:\Path\to\PlexPy\PlexPy.py` * Start in: `C:\Python27` +* Start PlexPy with the shortcut ## Ubuntu This installation assumes PlexPy is installed to `/opt/plexpy`. Make sure all paths are correct and accessible. A common mistake is that a daemon user has no read and/or write permissions. -* For Ubuntu that uses systemd (15.10+) utilize this service script: https://github.com/drzoidberg33/plexpy/blob/master/init-scripts/init.ubuntu.systemd +For Ubuntu that uses systemd (15.10+) utilize this service script. The instructions in the script file. +* https://github.com/drzoidberg33/plexpy/blob/master/init-scripts/init.ubuntu.systemd + +For other versions of Ubuntu: +* Make sure PlexPy is shutdown. `PlexPy > Settings > Shutdown` * `cd /opt/plexpy` * `sudo touch /etc/default/plexpy` * Optional: @@ -35,6 +41,7 @@ If you need to specify a version of Python, edit `com.drzoidberg33.plexpy.plist` ## FreeBSD 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` +* Make sure PlexPy is shutdown. `PlexPy > Settings > Shutdown` * 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"` @@ -50,6 +57,7 @@ Instructions by [Supa on the FreeNAS forums](https://forums.freenas.org/index.ph 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): +* Make sure PlexPy is shutdown. `PlexPy > Settings > Shutdown` * 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`