rc.subr (150796) | rc.subr (151426) |
---|---|
1# $NetBSD: rc.subr,v 1.60 2003/07/26 05:13:47 lukem Exp $ | 1# $NetBSD: rc.subr,v 1.60 2003/07/26 05:13:47 lukem Exp $ |
2# $FreeBSD: head/etc/rc.subr 150796 2005-10-01 20:58:03Z yar $ | 2# $FreeBSD: head/etc/rc.subr 151426 2005-10-17 19:01:53Z jhb $ |
3# 4# Copyright (c) 1997-2002 The NetBSD Foundation, Inc. 5# All rights reserved. 6# 7# This code is derived from software contributed to The NetBSD Foundation 8# by Luke Mewburn. 9# 10# Redistribution and use in source and binary forms, with or without --- 251 unchanged lines hidden (view full) --- 262 _interp="$* $_procname" # cleanup spaces, add _procname 263 _fp_args='_argv' 264 _fp_match='case "$_argv" in 265 ${_interp}|"${_interp} "*)' 266 else # a normal daemon 267 _procnamebn=${_procname##*/} 268 _fp_args='_arg0 _argv' 269 _fp_match='case "$_arg0" in | 3# 4# Copyright (c) 1997-2002 The NetBSD Foundation, Inc. 5# All rights reserved. 6# 7# This code is derived from software contributed to The NetBSD Foundation 8# by Luke Mewburn. 9# 10# Redistribution and use in source and binary forms, with or without --- 251 unchanged lines hidden (view full) --- 262 _interp="$* $_procname" # cleanup spaces, add _procname 263 _fp_args='_argv' 264 _fp_match='case "$_argv" in 265 ${_interp}|"${_interp} "*)' 266 else # a normal daemon 267 _procnamebn=${_procname##*/} 268 _fp_args='_arg0 _argv' 269 _fp_match='case "$_arg0" in |
270 $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})")' | 270 $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"|"[${_procnamebn}]")' |
271 fi 272 273 _proccheck=' 274 ps 2>/dev/null -o "pid,command" '"$_psargs"' | 275 while read _npid '"$_fp_args"'; do 276 case "$_npid" in 277 PID) 278 continue;; --- 1079 unchanged lines hidden --- | 271 fi 272 273 _proccheck=' 274 ps 2>/dev/null -o "pid,command" '"$_psargs"' | 275 while read _npid '"$_fp_args"'; do 276 case "$_npid" in 277 PID) 278 continue;; --- 1079 unchanged lines hidden --- |