Cleanup as many instances of rc.conf variable use before
calling load_rc_config(). Approved by: markm (mentor) dougb
This commit is contained in:
parent
dee3b611a1
commit
8a55a31618
@ -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"
|
||||
|
@ -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."
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user