Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##############################################################################
- ################################ CURRENT FILE ################################
- ##############################################################################
- # Systemd configuration file for SABnzbd
- # NOTE: Change user, group and port in sabnzbd.service as well.
- # Due to a bug these cannot be loaded from this config file
- # Set the protocol, IP and port
- SABNZBD_PROTOCOL=http
- SABNZBD_IP=127.0.0.1
- SABNZBD_PORT=8080
- # Set your default user/group(id), startarguments and your configfile
- SABNZBD_DIR=/opt/sabnzbd
- SABNZBD_ARGS=-f /opt/sabnzbd/sabnzbd.ini -s 127.0.0.1:8080 -d
- # Put the session keys from Config > General here
- SABNZBD_KEY=
- NZB_KEY=
- # If you use a username and password, change the following variable to
- # "user:pass@"
- SABNZBD_USPW=
- ##############################################################################
- ############################### PROPOSED FILE ################################
- ##############################################################################
- # Systemd configuration file for SABnzbd
- # NOTE: Change user, group and port in sabnzbd.service as well.
- # Due to a bug these cannot be loaded from this config file
- # Set the protocol, IP and port
- SABNZBD_PROTOCOL=http
- SABNZBD_IP=127.0.0.1
- SABNZBD_PORT=8080
- # Set your default user/group(id), startarguments and your configfile
- SABNZBD_DIR=/opt/sabnzbd
- SABNZBD_ARGS=-f /opt/sabnzbd/sabnzbd.ini -s ${SABNZBD_IP}:${SABNZBD_PORT} -d
- # Put the session keys from Config > General here
- SABNZBD_KEY=
- NZB_KEY=
- # If you use a username and password, change the following variable to
- # "user:pass@"
- SABNZBD_USPW=
- ##############################################################################
- #################################### DIFF ####################################
- ##############################################################################
- --- sabnzbd_systemd.confd 2012-08-01 05:07:47.000000000 -0500
- +++ sabnzbd_systemd.confd.new 2012-09-24 10:53:50.637947432 -0500
- @@ -7,11 +7,11 @@
- SABNZBD_IP=127.0.0.1
- SABNZBD_PORT=8080
- # Set your default user/group(id), startarguments and your configfile
- SABNZBD_DIR=/opt/sabnzbd
- -SABNZBD_ARGS=-f /opt/sabnzbd/sabnzbd.ini -s 127.0.0.1:8080 -d
- +SABNZBD_ARGS=-f ${SABNZBD_DIR}/sabnzbd.ini -s ${SABNZBD_IP}:{SABNZBD_PORT} -d
- # Put the session keys from Config > General here
- SABNZBD_KEY=
- NZB_KEY=
- ##############################################################################
- ##############################################################################
- ##############################################################################
- See below from systemd.exec(5). Notice how there is nothing here about
- "Parameters in definitions of parameters".
- EnvironmentFile=
- Similar to Environment= but reads the environment variables from a text
- file. The text file should contain new-line separated variable assignments.
- Empty lines and lines starting with ; or # will be ignored, which may be
- used for commenting. The parser strips leading and trailing whitespace from
- the values of assignments, unless you use double quotes ("). The argument
- passed should be an absolute file name, optionally prefixed with "-", which
- indicates that if the file does not exist it won't be read and no error or
- warning message is logged. The files listed with this directive will be read
- shortly before the process is executed. Settings from these files override
- settings made with Environment=. If the same variable is set twice from
- these files the files will be read in the order they are specified and the
- later setting will override the earlier setting.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement