From d9cd40474031821a60e8eaf47ba16076fe815bb2 Mon Sep 17 00:00:00 2001 From: drzoidberg33 Date: Wed, 24 Jun 2015 16:44:02 +0200 Subject: [PATCH] Created Install as a daemon (markdown) --- Install-as-a-daemon.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Install-as-a-daemon.md diff --git a/Install-as-a-daemon.md b/Install-as-a-daemon.md new file mode 100644 index 0000000..eef851e --- /dev/null +++ b/Install-as-a-daemon.md @@ -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` \ No newline at end of file