Revert 875d1b3b5f875578a8e60827974f5778bfea8b7b...3ef1fd56aa6b97a8bc25f09ae13afd4b48d01529 on Install as a daemon

JonnyWong16
2016-05-05 22:42:22 -07:00
parent 3ef1fd56aa
commit 33ddc5e3a8

@@ -3,19 +3,19 @@ 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.
* Create a new shortcut ([screenshot]()) in your startup folder with
* 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`
## 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:
* For Ubuntu that uses systemd (15.10+) utilize this service script: https://github.com/drzoidberg33/plexpy/blob/master/init-scripts/init.ubuntu.systemd
* `cd /opt/plexpy`
* `sudo touch /etc/default/plexpy`
* Optional:
* `sudo adduser --system --no-create-home plexpy`
* `sudo chown -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` 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`
@@ -45,7 +45,7 @@ Optional:
* Run from another directory: `sudo sysrc plexpy_dir="DIRECTORY"`
## FreeNAS
Instructions by [Supa on the FreeNAS forums]().
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).
This assumes PlexPy is installed to `/usr/local/share/` as per installation instructions.
@@ -55,6 +55,6 @@ To automate the PlexPy script just do this in the jail shell (in root directory)
* Type: `edit /etc/rc.d/plexpy`
* Edit the following line: `${plexpy_user:="xxxx"}` (I just used 'root')
* Save and close the file
* Type: `sysrc plexpy_enable="YES"`
* Type: `edit /etc/rc.conf` and add `plexpy_enable="YES"` to the file.
* Restart the PlexPy jail
* You can use `service plexpy [start | stop | restart | status]` to start/stop/restart or check the status of the PlexPy service