diff --git a/init-scripts/init-alt.freebsd b/init-scripts/init-alt.freebsd index a490eabb..eef5842d 100755 --- a/init-scripts/init-alt.freebsd +++ b/init-scripts/init-alt.freebsd @@ -1,7 +1,7 @@ #!/bin/sh # # PROVIDE: plexpy -# REQUIRE: sabnzbd +# REQUIRE: plexpy # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf @@ -10,7 +10,7 @@ # plexpy_enable (bool): Set to NO by default. # Set it to YES to enable it. # plexpy_user: The user account PlexPy daemon runs as what -# you want it to be. It uses '_sabnzbd' user by +# you want it to be. It uses 'plexpy' user by # default. Do not sets it as empty or it will run # as root. # plexpy_dir: Directory where PlexPy lives. @@ -28,7 +28,7 @@ rcvar=${name}_enable load_rc_config ${name} : ${plexpy_enable:="NO"} -: ${plexpy_user:="_sabnzbd"} +: ${plexpy_user:="plexpy"} : ${plexpy_dir:="/usr/local/plexpy"} : ${plexpy_chdir:="${plexpy_dir}"} : ${plexpy_pid:="${plexpy_dir}/plexpy.pid"} diff --git a/init-scripts/init.fedora.centos.systemd b/init-scripts/init.fedora.centos.systemd deleted file mode 100755 index 5cb70ce8..00000000 --- a/init-scripts/init.fedora.centos.systemd +++ /dev/null @@ -1,66 +0,0 @@ -# PlexPy - Stats for Plex Media Server usage -# -# Service Unit file for systemd system manager -# -# INSTALLATION NOTES -# -# 1. Rename this file as you want, ensuring that it ends in .service -# e.g. 'plexpy.service' -# -# 2. Adjust configuration settings as required. More details in the -# "CONFIGURATION NOTES" section shown below. -# -# 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: -# systemctl daemon-reload -# systemctl enable plexpy.service -# -# 6. 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. -# -# - Option names (e.g. ExecStart=, Type=) appear to be case-sensitive) -# -# - Adjust ExecStart= to point to: -# 1. Your PlexPy executable, -# 2. Your config file (recommended is to put it somewhere in /etc) -# 3. Your datadir (recommended is to NOT put it in your PlexPy exec dir) -# -# - Adjust User= and Group= to the user/group you want PlexPy to run as. -# -# - WantedBy= specifies which target (i.e. runlevel) to start PlexPy for. -# multi-user.target equates to runlevel 3 (multi-user text mode) -# graphical.target equates to runlevel 5 (multi-user X11 graphical mode) - -[Unit] -Description=PlexPy - Stats for Plex Media Server usage - -[Service] -ExecStart=/home/sabnzbd/plexpy/PlexPy.py --daemon --config /etc/plexpy/plexpy.ini --datadir /home/sabnzbd/.plexpy --nolaunch --quiet -GuessMainPID=no -Type=forking -User=sabnzbd -Group=sabnzbd - -[Install] -WantedBy=multi-user.target diff --git a/init-scripts/init.freebsd b/init-scripts/init.freebsd index 69afbd08..b5e09301 100755 --- a/init-scripts/init.freebsd +++ b/init-scripts/init.freebsd @@ -1,7 +1,7 @@ #!/bin/sh # # PROVIDE: plexpy -# REQUIRE: DAEMON sabnzbd +# REQUIRE: DAEMON plexpy # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf @@ -10,7 +10,7 @@ # plexpy_enable (bool): Set to NO by default. # Set it to YES to enable it. # plexpy_user: The user account PlexPy daemon runs as what -# you want it to be. It uses '_sabnzbd' user by +# you want it to be. It uses 'plexpy' user by # default. Do not sets it as empty or it will run # as root. # plexpy_dir: Directory where PlexPy lives. @@ -29,7 +29,7 @@ rcvar=${name}_enable load_rc_config ${name} : ${plexpy_enable:="NO"} -: ${plexpy_user:="_sabnzbd"} +: ${plexpy_user:="plexpy"} : ${plexpy_dir:="/usr/local/share/plexpy"} : ${plexpy_chdir:="${plexpy_dir}"} : ${plexpy_pid:="${plexpy_dir}/plexpy.pid"} diff --git a/init-scripts/init.freenas b/init-scripts/init.freenas index f708c85e..069bb577 100755 --- a/init-scripts/init.freenas +++ b/init-scripts/init.freenas @@ -1,7 +1,7 @@ #!/bin/sh # # PROVIDE: plexpy -# REQUIRE: DAEMON sabnzbd +# REQUIRE: DAEMON plexpy # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf @@ -10,7 +10,7 @@ # plexpy_enable (bool): Set to NO by default. # Set it to YES to enable it. # plexpy_user: The user account PlexPy daemon runs as what -# you want it to be. It uses '_sabnzbd' user by +# you want it to be. It uses 'plexpy' user by # default. Do not sets it as empty or it will run # as root. # plexpy_dir: Directory where PlexPy lives. @@ -29,7 +29,7 @@ rcvar=${name}_enable load_rc_config ${name} : ${plexpy_enable:="NO"} -: ${plexpy_user:="_sabnzbd"} +: ${plexpy_user:="plexpy"} : ${plexpy_dir:="/usr/local/share/plexpy"} : ${plexpy_chdir:="${plexpy_dir}"} : ${plexpy_pid:="${plexpy_dir}/plexpy.pid"} diff --git a/init-scripts/init.opensuse.systemd b/init-scripts/init.opensuse.systemd deleted file mode 100644 index 7dbdfc3e..00000000 --- a/init-scripts/init.opensuse.systemd +++ /dev/null @@ -1,67 +0,0 @@ -# PlexPy - Stats for Plex Media Server usage -# -# Service Unit file for systemd system manager -# -# INSTALLATION NOTES -# -# 1. Rename this file as you want, ensuring that it ends in .service -# e.g. 'plexpy.service' -# -# 2. Adjust configuration settings as required. More details in the -# "CONFIGURATION NOTES" section shown below. -# -# 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. '/opt/plexpy.ini' -# '/opt/plexpy' -# -# 5. Enable boot-time autostart with the following commands: -# systemctl daemon-reload -# systemctl enable plexpy.service -# -# 6. 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: plex.users -# 2. You will either have PlexPy installed as a subdirectory -# under '/opt', or that you will have a symlink under -# '/opt' pointing to your PlexPy install dir. -# 3. Your PlexPy data directory and configuration file can be -# in separate locations from your PlexPy install dir, to -# simplify updates. However, in the example below they are in the -# PlexPy install dir. -# -# - Option names (e.g. ExecStart=, Type=) appear to be case-sensitive) -# -# - Adjust ExecStart= to point to: -# 1. Your PlexPy executable, -# 2. Your config file (recommended is to put it somewhere in /etc) -# 3. Your datadir (recommended is to NOT put it in your PlexPy exec dir) -# -# - Adjust User= and Group= to the user/group you want PlexPy to run as. -# -# - WantedBy= specifies which target (i.e. runlevel) to start PlexPy for. -# multi-user.target equates to runlevel 3 (multi-user text mode) -# graphical.target equates to runlevel 5 (multi-user X11 graphical mode) - -[Unit] -Description=PlexPy - Stats for Plex Media Server usage - -[Service] -ExecStart=/opt/plexpy/PlexPy.py --daemon --config /opt/plexpy/config.ini --datadir /opt/plexpy --nolaunch --quiet -GuessMainPID=no -Type=forking -User=plex -Group=users - -[Install] -WantedBy=multi-user.target \ No newline at end of file diff --git a/init-scripts/init.solaris11 b/init-scripts/init.solaris11 index 8e50267d..bc6a9f99 100755 --- a/init-scripts/init.solaris11 +++ b/init-scripts/init.solaris11 @@ -19,7 +19,7 @@ - + diff --git a/init-scripts/init.ubuntu.systemd b/init-scripts/init.systemd similarity index 100% rename from init-scripts/init.ubuntu.systemd rename to init-scripts/init.systemd