From 6a0b0327c3d75f15df7a8372a005a080a410109d Mon Sep 17 00:00:00 2001 From: ampsonic Date: Sat, 28 Jan 2017 16:42:50 -0800 Subject: [PATCH] Update init.ubuntu.systemd Updated the instructions to more accurately reflect required steps. Removed outdated information and added information on creating the plexpy user. Only the comments of the file changed not actual configuration. --- init-scripts/init.ubuntu.systemd | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/init-scripts/init.ubuntu.systemd b/init-scripts/init.ubuntu.systemd index fd4d54bc..ae74eee6 100644 --- a/init-scripts/init.ubuntu.systemd +++ b/init-scripts/init.ubuntu.systemd @@ -13,32 +13,20 @@ # 3. Copy this file into your systemd service unit directory, which is # often '/lib/systemd/system'. # -# 4. Create any files/directories that you specified back in step #2. -# e.g. '/etc/plexpy/plexpy.ini' -# '/home/sabnzbd/.plexpy' -# -# 5. Enable boot-time autostart with the following commands: +# 4. Enable boot-time autostart with the following commands: # systemctl daemon-reload # systemctl enable plexpy.service # -# 6. Start now with the following command: +# 5. Start now with the following command: # systemctl start plexpy.service # -# 7. If troubleshooting startup-errors, start by checking permissions -# and ownership on the files/directories that you created in step #4. -# -# # CONFIGURATION NOTES # -# - The example settings in this file assume that: -# 1. You will run PlexPy as user/group: sabnzbd.sabnzbd -# 2. You will either have PlexPy installed as a subdirectory -# under '~sabnzbd', or that you will have a symlink under -# '~/sabnzbd' pointing to your PlexPy install dir. -# 3. Your PlexPy data directory and configuration file will be -# in separate locations from your PlexPy install dir, to -# simplify updates. -# +# - The example settings in this file assume that you will run PlexPy as user: plexpy +# - To create this user and give it ownership of the plexpy directory: +# sudo adduser --system --no-create-home plexpy +# sudo chown plexpy:nogroup -R /opt/plexpy +# # - Option names (e.g. ExecStart=, Type=) appear to be case-sensitive) # # - Adjust ExecStart= to point to: @@ -63,4 +51,4 @@ User=plexpy Group=nogroup [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target