rc.subr (230103) | rc.subr (230374) |
---|---|
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 230103 2012-01-14 08:59:02Z dougb $ | 2# $FreeBSD: head/etc/rc.subr 230374 2012-01-20 10:31:27Z dougb $ |
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 --- 625 unchanged lines hidden (view full) --- 636 _group=\$${name}_group _groups=\$${name}_groups 637 638 if [ -n "$_user" ]; then # unset $_user if running as that user 639 if [ "$_user" = "$(eval $IDCMD)" ]; then 640 unset _user 641 fi 642 fi 643 | 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 --- 625 unchanged lines hidden (view full) --- 636 _group=\$${name}_group _groups=\$${name}_groups 637 638 if [ -n "$_user" ]; then # unset $_user if running as that user 639 if [ "$_user" = "$(eval $IDCMD)" ]; then 640 unset _user 641 fi 642 fi 643 |
644 eval $_pidcmd # determine the pid if necessary | 644 [ -z "$autoboot" ] && eval $_pidcmd # determine the pid if necessary |
645 646 for _elem in $_keywords; do 647 if [ "$_elem" != "$rc_arg" ]; then 648 continue 649 fi 650 # if ${rcvar} is set, $1 is not "rcvar" 651 # and ${rc_pid} is not set, then run 652 # checkyesno ${rcvar} --- 1084 unchanged lines hidden --- | 645 646 for _elem in $_keywords; do 647 if [ "$_elem" != "$rc_arg" ]; then 648 continue 649 fi 650 # if ${rcvar} is set, $1 is not "rcvar" 651 # and ${rc_pid} is not set, then run 652 # checkyesno ${rcvar} --- 1084 unchanged lines hidden --- |