Updated Install as a daemon (markdown)

JonnyWong16
2016-09-18 19:23:06 -07:00
parent 85e3ed920f
commit 4ae7113fff

@@ -13,7 +13,7 @@ This will start PlexPy when you login to Windows without the command prompt.
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. 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. 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 * https://github.com/JonnyWong16/plexpy/blob/master/init-scripts/init.ubuntu.systemd
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`
@@ -22,7 +22,7 @@ For other versions of Ubuntu:
* Optional: * Optional:
* `sudo adduser --system --no-create-home plexpy` * `sudo adduser --system --no-create-home plexpy`
* `sudo chown plexpy:nogroup -R /opt/plexpy` * `sudo chown plexpy:nogroup -R /opt/plexpy`
* Adjust settings in `/etc/default/plexpy`. See the comments in [`/opt/plexpy/init-scripts/init.ubuntu`](https://github.com/drzoidberg33/plexpy/blob/master/init-scripts/init.ubuntu) for the list of parameters. * Adjust settings in `/etc/default/plexpy`. See the comments in [`/opt/plexpy/init-scripts/init.ubuntu`](https://github.com/JonnyWong16/plexpy/blob/master/init-scripts/init.ubuntu) for the list of parameters.
* `sudo chmod +x /opt/plexpy/init-scripts/init.ubuntu` * `sudo chmod +x /opt/plexpy/init-scripts/init.ubuntu`
* `sudo ln -s /opt/plexpy/init-scripts/init.ubuntu /etc/init.d/plexpy` * `sudo ln -s /opt/plexpy/init-scripts/init.ubuntu /etc/init.d/plexpy`
* `sudo update-rc.d plexpy defaults` * `sudo update-rc.d plexpy defaults`
@@ -31,12 +31,12 @@ For other versions of Ubuntu:
## 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/`
If you need to specify a version of Python, edit `com.drzoidberg33.plexpy.plist` If you need to specify a version of Python, edit `com.JonnyWong16.plexpy.plist`
* Make sure PlexPy is shutdown. `PlexPy > Settings > Shutdown` * Make sure PlexPy is shutdown. `PlexPy > Settings > Shutdown`
* `cp /Applications/PlexPy/init-scripts/init.osx ~/Library/LaunchAgents/com.drzoidberg33.plexpy.plist` * `cp /Applications/PlexPy/init-scripts/init.osx ~/Library/LaunchAgents/com.JonnyWong16.plexpy.plist`
* To start PlexPy run `launchctl load ~/Library/LaunchAgents/com.drzoidberg33.plexpy.plist` * To start PlexPy run `launchctl load ~/Library/LaunchAgents/com.JonnyWong16.plexpy.plist`
* To stop PlexPy run `launchctl unload ~/Library/LaunchAgents/com.drzoidberg33.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`