# HG changeset patch # User Changaco # Date 1334529037 -7200 # Node ID b88065b70ecdde2039e73b6f43fd90d2cde3820b # Parent 70bf588021fa1f407a0dd273d3a25b00e3b615da fix rc.d script Signed-off-by: Changaco diff --git a/rc.d/feed-push b/rc.d/feed-push --- a/rc.d/feed-push +++ b/rc.d/feed-push @@ -3,11 +3,6 @@ . /etc/rc.conf . /etc/rc.d/functions -get_pid() { - pgrep -f $daemon_name | grep -v $$ -} -PID=$(get_pid) - daemon_bin="/usr/bin/feed-push" daemon_name=$(basename $daemon_bin) pid_file="/var/run/$daemon_name.pid" @@ -15,6 +10,11 @@ pid_file="/var/run/$daemon_name.pid" data_dir=/var/lib/$daemon_name conf_dir=/etc/$daemon_name +get_pid() { + pgrep -f $daemon_name | grep -v $$ +} +PID=$(get_pid) + case "$1" in start) stat_busy "Starting $daemon_name daemon"