*** /lib/rcscripts/sh/rc-daemon.sh.orig 2006-08-15 14:25:15.000000000 -0500 --- /lib/rcscripts/sh/rc-daemon.sh 2006-08-15 14:26:17.000000000 -0500 *************** *** 86,92 **** # # Setup our vars based on the start-stop-daemon command rc_setup_daemon_vars() { ! local name i local -a sargs=( "${args%% \'--\' *}" ) local -a eargs local x="${args// \'--\' /}" --- 86,92 ---- # # Setup our vars based on the start-stop-daemon command rc_setup_daemon_vars() { ! local i local -a sargs=( "${args%% \'--\' *}" ) local -a eargs local x="${args// \'--\' /}" *************** *** 194,219 **** eval /bin/pidof -x ${args} } ! # bool is_daemon_running(char* cmd, char* pidfile) # # Returns 0 if the given daemon is running, otherwise 1 # If a pidfile is supplied, the pid inside it must match ! # a pid in the list of pidof ${cmd} is_daemon_running() { ! local cmd pidfile pids pid if [[ $# == "1" ]]; then ! cmd="$1" else local i j="$#" for (( i=0; i