1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

Cleanup as many instances of rc.conf variable use before

calling load_rc_config().

Approved by:	markm (mentor) dougb
This commit is contained in:
Mike Makonnen 2003-01-24 00:37:52 +00:00
parent 3648042ae9
commit 9a03c49d6c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109770
7 changed files with 16 additions and 17 deletions

View File

@ -14,6 +14,7 @@ name="nfsd"
rcvar=`set_rcvar nfs_server`
command="/usr/sbin/${name}"
load_rc_config $name
case ${OSTYPE} in
FreeBSD)
command_args="${nfs_server_flags}"
@ -51,5 +52,4 @@ nfsd_precmd()
return 0
}
load_rc_config $name
run_rc_command "$1"

View File

@ -16,17 +16,16 @@ rcvar=`set_rcvar`
command="/usr/sbin/${name}"
start_precmd="rtadvd_precmd"
case ${OSTYPE} in
FreeBSD)
IS_GATEWAY="checkyesno ipv6_gateway_enable"
;;
NetBSD)
IS_GATEWAY="eval [ \"$ip6mode\" = \"router\" ]"
;;
esac
rtadvd_precmd()
{
case ${OSTYPE} in
FreeBSD)
IS_GATEWAY="checkyesno ipv6_gateway_enable"
;;
NetBSD)
IS_GATEWAY="eval [ \"$ip6mode\" = \"router\" ]"
;;
esac
if ! ${IS_GATEWAY}; then
warn \
"${name} cannot be used on IPv6 host, only on an IPv6 router."

View File

@ -15,6 +15,7 @@ name="ypbind"
command="/usr/sbin/${name}"
start_precmd="ypbind_precmd"
load_rc_config $name
case ${OSTYPE} in
FreeBSD)
rcvar="nis_client_enable"
@ -44,5 +45,4 @@ ypbind_precmd()
fi
}
load_rc_config $name
run_rc_command "$1"

View File

@ -15,6 +15,7 @@ name="yppasswdd"
command="/usr/sbin/rpc.${name}"
start_precmd="yppasswdd_precmd"
load_rc_config $name
case ${OSTYPE} in
FreeBSD)
rcvar="nis_yppasswdd_enable"
@ -50,5 +51,4 @@ yppasswdd_precmd()
fi
}
load_rc_config $name
run_rc_command "$1"

View File

@ -14,6 +14,7 @@ name="ypserv"
command="/usr/sbin/${name}"
start_precmd="ypserv_precmd"
load_rc_config $name
case ${OSTYPE} in
FreeBSD)
rcvar="nis_server_enable"
@ -49,5 +50,4 @@ ypserv_precmd()
fi
}
load_rc_config $name
run_rc_command "$1"

View File

@ -12,8 +12,9 @@
name="ypset"
rcvar="nis_ypset_enable"
command="/usr/sbin/${name}"
command_args="${nis_ypset_flags}"
start_precmd="ypset_precmd"
load_rc_config $name
command_args="${nis_ypset_flags}"
ypset_precmd()
{
@ -35,5 +36,4 @@ ypset_precmd()
fi
}
load_rc_config $name
run_rc_command "$1"

View File

@ -12,8 +12,9 @@
name="ypxfrd"
rcvar="nis_ypxfrd_enable"
command="/usr/sbin/rpc.${name}"
command_args="${nis_ypxfrd_flags}"
start_precmd="ypxfrd_precmd"
load_rc_config $name
command_args="${nis_ypxfrd_flags}"
ypxfrd_precmd()
{
@ -35,5 +36,4 @@ ypxfrd_precmd()
fi
}
load_rc_config $name
run_rc_command "$1"