Updated Install as a daemon (markdown)

JonnyWong16
2017-03-04 16:10:24 -08:00
parent e3949fc680
commit 6a7d3e6303

@@ -46,11 +46,14 @@ This will start PlexPy in the background when your computer starts, regardless o
* Once PlexPy has started, the [status should change back to "Ready" and the last run result should say "The operation completed successfully (0x0)"](https://i.imgur.com/6wCl9F4.png). * Once PlexPy has started, the [status should change back to "Ready" and the last run result should say "The operation completed successfully (0x0)"](https://i.imgur.com/6wCl9F4.png).
* In your Windows Task Manager, there should be a ["pythonw.exe" background process running](https://i.imgur.com/y92k9zb.png). * In your Windows Task Manager, there should be a ["pythonw.exe" background process running](https://i.imgur.com/y92k9zb.png).
## 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. The instructions in the script file. ## Linux
* https://github.com/JonnyWong16/plexpy/blob/master/init-scripts/init.ubuntu.systemd For CentOS/Fedora/openSUSE/Ubuntu that uses systemd, utilize this service script. The instructions are in the script file.
* https://github.com/JonnyWong16/plexpy/blob/master/init-scripts/init.systemd
## Ubuntu (<15.10)
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 other versions of Ubuntu: For other versions of Ubuntu:
* Make sure PlexPy is shutdown. `PlexPy > Settings > Shutdown` * Make sure PlexPy is shutdown. `PlexPy > Settings > Shutdown`
@@ -65,6 +68,7 @@ For other versions of Ubuntu:
* `sudo update-rc.d plexpy defaults` * `sudo update-rc.d plexpy defaults`
* `sudo service plexpy [start | stop | reload | restart]` * `sudo service plexpy [start | stop | reload | restart]`
## Mac OS X ## Mac OS X
Tested on Mac OS X 10.11.3. Assumes PlexPy is installed to `/Applications/PlexPy/` Tested on Mac OS X 10.11.3. Assumes PlexPy is installed to `/Applications/PlexPy/`
@@ -75,6 +79,7 @@ If you need to specify a version of Python, edit `com.JonnyWong16.plexpy.plist`
* To start PlexPy run `launchctl load ~/Library/LaunchAgents/com.JonnyWong16.plexpy.plist` * To start PlexPy run `launchctl load ~/Library/LaunchAgents/com.JonnyWong16.plexpy.plist`
* To stop PlexPy run `launchctl unload ~/Library/LaunchAgents/com.JonnyWong16.plexpy.plist` * To stop PlexPy run `launchctl unload ~/Library/LaunchAgents/com.JonnyWong16.plexpy.plist`
## FreeBSD ## 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` 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`
@@ -88,6 +93,7 @@ Optional:
* If you need to change user: `sudo sysrc plexpy_user="USERNAME"` * If you need to change user: `sudo sysrc plexpy_user="USERNAME"`
* Run from another directory: `sudo sysrc plexpy_dir="DIRECTORY"` * Run from another directory: `sudo sysrc plexpy_dir="DIRECTORY"`
## FreeNAS ## 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). 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).