rc.subr (243324) | rc.subr (245250) |
---|---|
1# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $ | 1# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $ |
2# $FreeBSD: head/etc/rc.subr 243324 2012-11-20 04:45:04Z hrs $ | 2# $FreeBSD: head/etc/rc.subr 245250 2013-01-10 11:08:22Z smh $ |
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 --- 274 unchanged lines hidden (view full) --- 285 else 286 warn "cannot read shebang line from $_script" 287 set -- $_interpreter 288 fi 289 _interp="$* $_procname" # cleanup spaces, add _procname 290 _interpbn=${1##*/} 291 _fp_args='_argv' 292 _fp_match='case "$_argv" in | 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 --- 274 unchanged lines hidden (view full) --- 285 else 286 warn "cannot read shebang line from $_script" 287 set -- $_interpreter 288 fi 289 _interp="$* $_procname" # cleanup spaces, add _procname 290 _interpbn=${1##*/} 291 _fp_args='_argv' 292 _fp_match='case "$_argv" in |
293 ${_interp}|"${_interp} "*|"${_interpbn}: ${_procname}"*)' | 293 ${_interp}|"${_interp} "*|"[${_interpbn}]"|"${_interpbn}: ${_procname}"*)' |
294 else # a normal daemon 295 _procnamebn=${_procname##*/} 296 _fp_args='_arg0 _argv' 297 _fp_match='case "$_arg0" in 298 $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"|"[${_procnamebn}]")' 299 fi 300 301 _proccheck="\ --- 1467 unchanged lines hidden --- | 294 else # a normal daemon 295 _procnamebn=${_procname##*/} 296 _fp_args='_arg0 _argv' 297 _fp_match='case "$_arg0" in 298 $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"|"[${_procnamebn}]")' 299 fi 300 301 _proccheck="\ --- 1467 unchanged lines hidden --- |