Created Install as a daemon (markdown)

drzoidberg33
2015-06-24 16:44:02 +02:00
parent 8580d0f6bc
commit d9cd404740

21
Install-as-a-daemon.md Normal file

@@ -0,0 +1,21 @@
These steps are presented as guidelines. Your results may vary, depending on operating system, installation path and other settings.
## 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.
* `cd /opt/plexpy`
* `sudo touch /etc/default/plexpy`
* Optional:
* `sudo adduser --system --no-create-home plexpy`
* `sudo chown plexpy:nogroup -R /opt/plexpy`
* Adjust settings in `/etc/default/plexpy`. See the comments in `/opt/plexpy/init-scripts/init.ubuntu` for the list of parameters.
* `sudo chmod +x /opt/plexpy/init-scripts/init.ubuntu`
* `sudo ln -s /opt/plexpy/init-scripts/init.ubuntu /etc/init.d/plexpy`
* `sudo update-rc.d plexpy defaults`
* `sudo service plexpy [start | stop | reload | restart]`
## Mac OS X
Tested on Mac OS X 10.8.2. Assumes PlexPy is installed to `/Applications/PlexPy/`
* `ln -s /Applications/PlexPy/init-scripts/init.osx ~/Library/LaunchAgents/com.drzoidberg33.plexpy.plist`
* `launchctl [load | unload] ~/Library/LaunchAgents/com.drzoidberg33.plexpy.plist`