From 3aabcbf8f159143fd89a7c1c56c05f6efd8443fa Mon Sep 17 00:00:00 2001 From: iamnos Date: Thu, 22 Nov 2012 14:18:35 -0600 Subject: [PATCH] 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. --- init/fedora | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/init/fedora b/init/fedora index c9ebbf2..791b676 100644 --- a/init/fedora +++ b/init/fedora @@ -11,11 +11,6 @@ # Source function library. . /etc/init.d/functions -# Source couchpotato configuration -if [ -f /etc/sysconfig/couchpotato ]; then - . /etc/sysconfig/couchpotato -fi - prog=couchpotato lockfile=/var/lock/subsys/$prog @@ -27,6 +22,11 @@ datadir=${CP_DATA-~/.couchpotato} pidfile=${CP_PIDFILE-/var/run/couchpotato/couchpotato.pid} ## +# Source couchpotato configuration +if [ -f /etc/sysconfig/couchpotato ]; then + . /etc/sysconfig/couchpotato +fi + pidpath=`dirname ${pidfile}` options=" --daemon --pid_file=${pidfile} --data_dir=${datadir}"