SHOW:
|
|
- or go back to the newest paste.
1 | ############################################################################## | |
2 | ################################ CURRENT FILE ################################ | |
3 | ############################################################################## | |
4 | ||
5 | # Systemd configuration file for SABnzbd | |
6 | # NOTE: Change user, group and port in sabnzbd.service as well. | |
7 | # Due to a bug these cannot be loaded from this config file | |
8 | ||
9 | # Set the protocol, IP and port | |
10 | SABNZBD_PROTOCOL=http | |
11 | SABNZBD_IP=127.0.0.1 | |
12 | SABNZBD_PORT=8080 | |
13 | ||
14 | # Set your default user/group(id), startarguments and your configfile | |
15 | SABNZBD_DIR=/opt/sabnzbd | |
16 | SABNZBD_ARGS=-f /opt/sabnzbd/sabnzbd.ini -s 127.0.0.1:8080 -d | |
17 | ||
18 | # Put the session keys from Config > General here | |
19 | SABNZBD_KEY= | |
20 | NZB_KEY= | |
21 | ||
22 | # If you use a username and password, change the following variable to | |
23 | # "user:pass@" | |
24 | SABNZBD_USPW= | |
25 | ||
26 | ############################################################################## | |
27 | ############################### PROPOSED FILE ################################ | |
28 | ############################################################################## | |
29 | ||
30 | # Systemd configuration file for SABnzbd | |
31 | # NOTE: Change user, group and port in sabnzbd.service as well. | |
32 | # Due to a bug these cannot be loaded from this config file | |
33 | ||
34 | # Set the protocol, IP and port | |
35 | SABNZBD_PROTOCOL=http | |
36 | SABNZBD_IP=127.0.0.1 | |
37 | SABNZBD_PORT=8080 | |
38 | ||
39 | # Set your default user/group(id), startarguments and your configfile | |
40 | SABNZBD_DIR=/opt/sabnzbd | |
41 | - | SABNZBD_ARGS=-f /opt/sabnzbd/sabnzbd.ini -s ${SABNZBD_IP}:${SABNZBD_PORT} -d |
41 | + | SABNZBD_ARGS=-f ${SABNZBD_DIR}/sabnzbd.ini -s ${SABNZBD_IP}:${SABNZBD_PORT} -d |
42 | ||
43 | # Put the session keys from Config > General here | |
44 | SABNZBD_KEY= | |
45 | NZB_KEY= | |
46 | ||
47 | # If you use a username and password, change the following variable to | |
48 | # "user:pass@" | |
49 | SABNZBD_USPW= | |
50 | ||
51 | ############################################################################## | |
52 | #################################### DIFF #################################### | |
53 | ############################################################################## | |
54 | ||
55 | --- sabnzbd_systemd.confd 2012-08-01 05:07:47.000000000 -0500 | |
56 | +++ sabnzbd_systemd.confd.new 2012-09-24 10:53:50.637947432 -0500 | |
57 | @@ -7,11 +7,11 @@ | |
58 | SABNZBD_IP=127.0.0.1 | |
59 | SABNZBD_PORT=8080 | |
60 | ||
61 | # Set your default user/group(id), startarguments and your configfile | |
62 | SABNZBD_DIR=/opt/sabnzbd | |
63 | -SABNZBD_ARGS=-f /opt/sabnzbd/sabnzbd.ini -s 127.0.0.1:8080 -d | |
64 | +SABNZBD_ARGS=-f ${SABNZBD_DIR}/sabnzbd.ini -s ${SABNZBD_IP}:{SABNZBD_PORT} -d | |
65 | ||
66 | # Put the session keys from Config > General here | |
67 | SABNZBD_KEY= | |
68 | NZB_KEY= | |
69 | ||
70 | ############################################################################## | |
71 | ############################################################################## | |
72 | ############################################################################## | |
73 | ||
74 | See below from systemd.exec(5). Notice how there is nothing here about | |
75 | "Parameters in definitions of parameters". | |
76 | ||
77 | EnvironmentFile= | |
78 | Similar to Environment= but reads the environment variables from a text | |
79 | file. The text file should contain new-line separated variable assignments. | |
80 | Empty lines and lines starting with ; or # will be ignored, which may be | |
81 | used for commenting. The parser strips leading and trailing whitespace from | |
82 | the values of assignments, unless you use double quotes ("). The argument | |
83 | passed should be an absolute file name, optionally prefixed with "-", which | |
84 | indicates that if the file does not exist it won't be read and no error or | |
85 | warning message is logged. The files listed with this directive will be read | |
86 | shortly before the process is executed. Settings from these files override | |
87 | settings made with Environment=. If the same variable is set twice from | |
88 | these files the files will be read in the order they are specified and the | |
89 | later setting will override the earlier setting. |