From af0cf523e332660e6611bf68714e6040b402ec05 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 12 Feb 2013 22:56:02 +0100 Subject: [PATCH] Fedora init script. closes #1399 --- init/fedora | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/init/fedora b/init/fedora index 791b676..4735247 100644 --- a/init/fedora +++ b/init/fedora @@ -14,6 +14,11 @@ prog=couchpotato lockfile=/var/lock/subsys/$prog +# Source couchpotato configuration +if [ -f /etc/sysconfig/couchpotato ]; then + . /etc/sysconfig/couchpotato +fi + ## Edit user configuation in /etc/sysconfig/couchpotato to change ## the defaults username=${CP_USER-couchpotato} @@ -22,11 +27,6 @@ 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}" @@ -87,4 +87,4 @@ case "$1" in *) echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}" exit 2 -esac \ No newline at end of file +esac