Private GIT

Skip to content
Snippets Groups Projects
Commit 3aabcbf8 authored by iamnos's avatar iamnos Committed by Ruud
Browse files

Update init/fedora

The config file should be read after the defaults are set, or the options set in the config file are never used.
parent 929c6fe3
No related branches found
No related tags found
No related merge requests found
...@@ -11,11 +11,6 @@ ...@@ -11,11 +11,6 @@
# Source function library. # Source function library.
. /etc/init.d/functions . /etc/init.d/functions
# Source couchpotato configuration
if [ -f /etc/sysconfig/couchpotato ]; then
. /etc/sysconfig/couchpotato
fi
prog=couchpotato prog=couchpotato
lockfile=/var/lock/subsys/$prog lockfile=/var/lock/subsys/$prog
...@@ -27,6 +22,11 @@ datadir=${CP_DATA-~/.couchpotato} ...@@ -27,6 +22,11 @@ datadir=${CP_DATA-~/.couchpotato}
pidfile=${CP_PIDFILE-/var/run/couchpotato/couchpotato.pid} pidfile=${CP_PIDFILE-/var/run/couchpotato/couchpotato.pid}
## ##
# Source couchpotato configuration
if [ -f /etc/sysconfig/couchpotato ]; then
. /etc/sysconfig/couchpotato
fi
pidpath=`dirname ${pidfile}` pidpath=`dirname ${pidfile}`
options=" --daemon --pid_file=${pidfile} --data_dir=${datadir}" options=" --daemon --pid_file=${pidfile} --data_dir=${datadir}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment