View | Details | Raw Unified
Collapse All | Expand All

(-) sbin/rc-services.sh (-2 / +2 lines)
 Lines 707-717    Link Here 
# If index is emtpy, then we don't care what the first daemon launched
# If index is emtpy, then we don't care what the first daemon launched
# was, otherwise the daemon must also be at that index
# was, otherwise the daemon must also be at that index
service_started_daemon() {
service_started_daemon() {
	local service="$1" daemon="$2" index="${3:-[0-9]*}"
	local service="$1" daemon="'$2'" index="${3:-[0-9]*}"
	local daemonfile="${svcdir}/daemons/${service}"
	local daemonfile="${svcdir}/daemons/${service}"
	[[ ! -e ${daemonfile} ]] && return 1
	[[ ! -e ${daemonfile} ]] && return 1
	grep -q '^RC_DAEMONS\['"${index}"'\]="'${daemon}'"$' "${daemonfile}"
	grep -q '^RC_DAEMONS\['"${index}"'\]='"${daemon}"'$' "${daemonfile}"
}
}
# bool net_service(service)
# bool net_service(service)