|
|
@ -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 |
|
|
|
esac |
|
|
|