Skip to content

Commit

Permalink
Update start scripts to use python wrapper on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed May 13, 2024
1 parent 078a814 commit 0dff187
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WorkingDirectory=/opt/nzbhydra2
# NZBHydra stores its data in a "data" subfolder of its installation path
# To change that set the --datafolder parameter:
# --datafolder /var/local/lib/nzbhydra
ExecStart=/opt/nzbhydra2/nzbhydra2 --nobrowser
ExecStart=python3 /opt/nzbhydra2/nzbhydra2wrapperPy3.py --nobrowser
Restart=always

[Install]
Expand Down
3 changes: 3 additions & 0 deletions releases/linux-amd64-release/include/other/sysv/sysv
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#! /bin/sh

# NOTE: Needs to be adapted to run nzbhydra2wrapperPy3.py as the binary file "nzbhydra2" does not exist anymore

### BEGIN INIT INFO
# Provides: NZBHydra
# Required-Start: $local_fs $network $remote_fs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
# Set bind port
# NH_PORT=8084

# Use an alternate Python
# Use an alternate java
# JAVA_BIN=/usr/local/bin/java

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# Description: starts instance of nzbhydra using start-stop-daemon
### END INIT INFO

# NOTE: Needs to be adapted to run nzbhydra2wrapperPy3.py as the binary file "nzbhydra2" does not exist anymore

#to debug run like this: env -i NH_USER="ubuntu" NH_HOME="/home/ubuntu/upstart" NH_PIDFILE="/home/ubuntu/upstart/nzbhydra2.pid" init.ubuntu start

NAME=nzbhydra2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WorkingDirectory=/opt/nzbhydra2
# NZBHydra stores its data in a "data" subfolder of its installation path
# To change that set the --datafolder parameter:
# --datafolder /var/local/lib/nzbhydra
ExecStart=/opt/nzbhydra2/nzbhydra2 --nobrowser
ExecStart=python3 /opt/nzbhydra2/nzbhydra2wrapperPy3.py --nobrowser
Restart=always

[Install]
Expand Down
3 changes: 3 additions & 0 deletions releases/linux-arm64-release/include/other/sysv/sysv
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#! /bin/sh

# NOTE: Needs to be adapted to run nzbhydra2wrapperPy3.py as the binary file "nzbhydra2" does not exist anymore

### BEGIN INIT INFO
# Provides: NZBHydra
# Required-Start: $local_fs $network $remote_fs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
# Set bind port
# NH_PORT=8084

# Use an alternate Python
# Use an alternate java
# JAVA_BIN=/usr/local/bin/java

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# Description: starts instance of nzbhydra using start-stop-daemon
### END INIT INFO

# NOTE: Needs to be adapted to run nzbhydra2wrapperPy3.py as the binary file "nzbhydra2" does not exist anymore

#to debug run like this: env -i NH_USER="ubuntu" NH_HOME="/home/ubuntu/upstart" NH_PIDFILE="/home/ubuntu/upstart/nzbhydra2.pid" init.ubuntu start

NAME=nzbhydra2
Expand Down

0 comments on commit 0dff187

Please sign in to comment.