pkill(1) and pgrep(1) have been moved to /bin so that they are
available to rc.d scripts early in the boot sequence.
This commit is contained in:
parent
5f9af361f4
commit
d798671ba8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166740
@ -19,9 +19,9 @@ stop_cmd="dhclient_stop"
|
||||
dhclient_start()
|
||||
{
|
||||
# prevent unnecessary restarts
|
||||
# XXX: should use a pidfile
|
||||
if [ -x /usr/bin/pgrep ]; then
|
||||
pids=`/usr/bin/pgrep -f "dhclient: $ifn(\$| .*)"`
|
||||
# XXX: dhclient had better create a pidfile
|
||||
if [ -x /bin/pgrep ]; then
|
||||
pids=`/bin/pgrep -f "dhclient: $ifn(\$| .*)"`
|
||||
if [ -n "$pids" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user