Deleted Added
full compact
rc.subr (161435) rc.subr (161436)
1# $NetBSD: rc.subr,v 1.66 2006/04/01 10:05:50 he Exp $
1# $NetBSD: rc.subr,v 1.66 2006/04/01 10:05:50 he Exp $
2# $FreeBSD: head/etc/rc.subr 161435 2006-08-18 12:10:18Z yar $
2# $FreeBSD: head/etc/rc.subr 161436 2006-08-18 13:07:38Z yar $
3#
4# Copyright (c) 1997-2004 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

--- 264 unchanged lines hidden (view full) ---

275 else # a normal daemon
276 _procnamebn=${_procname##*/}
277 _fp_args='_arg0 _argv'
278 _fp_match='case "$_arg0" in
279 $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"|"[${_procnamebn}]")'
280 fi
281
282 _proccheck="\
3#
4# Copyright (c) 1997-2004 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

--- 264 unchanged lines hidden (view full) ---

275 else # a normal daemon
276 _procnamebn=${_procname##*/}
277 _fp_args='_arg0 _argv'
278 _fp_match='case "$_arg0" in
279 $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"|"[${_procnamebn}]")'
280 fi
281
282 _proccheck="\
283 $PS 2>/dev/null -o pid,jid,command $_psargs"' |
283 $PS 2>/dev/null -o pid= -o jid= -o command= $_psargs"' |
284 while read _npid _jid '"$_fp_args"'; do
284 while read _npid _jid '"$_fp_args"'; do
285 case "$_npid" in
286 PID)
287 continue;;
288 esac; '"$_fp_match"'
285 '"$_fp_match"'
289 if [ "$JID" -eq "$_jid" ];
290 then echo -n "$_pref$_npid";
291 _pref=" ";
292 fi
293 ;;
294 esac
295 done'
296

--- 1223 unchanged lines hidden ---
286 if [ "$JID" -eq "$_jid" ];
287 then echo -n "$_pref$_npid";
288 _pref=" ";
289 fi
290 ;;
291 esac
292 done'
293

--- 1223 unchanged lines hidden ---