diff options
author | alfred <alfred@FreeBSD.org> | 2001-12-13 04:21:18 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2001-12-13 04:21:18 +0000 |
commit | 2eaaa91f6f2e878a476fbf3758ffba37cdf38d4b (patch) | |
tree | 94a8654f0477c41fbbb420fc18b08b373dae3752 /etc/rc.d/netoptions | |
parent | 3c2732d72093343bb14e912f558942efd7f0b15f (diff) | |
download | FreeBSD-src-2eaaa91f6f2e878a476fbf3758ffba37cdf38d4b.zip FreeBSD-src-2eaaa91f6f2e878a476fbf3758ffba37cdf38d4b.tar.gz |
rpc.lockd needs rpc.statd to be running for it to start up properly.
so swap the order.
Also allow rpc.lockd and rpc.statd to be turned on if nfsclient is
enabled. They are needed to provide client side locking support.
PR: conf/27811
Diffstat (limited to 'etc/rc.d/netoptions')
-rw-r--r-- | etc/rc.d/netoptions | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions index fa6af3e..d6da093 100644 --- a/etc/rc.d/netoptions +++ b/etc/rc.d/netoptions @@ -678,15 +678,15 @@ network_pass3() { echo -n ' nfsd'; nfsd ${nfs_server_flags} - case ${rpc_lockd_enable} in + case ${rpc_statd_enable} in [Yy][Ee][Ss]) - echo -n ' rpc.lockd'; rpc.lockd + echo -n ' rpc.statd'; rpc.statd ;; esac - case ${rpc_statd_enable} in + case ${rpc_lockd_enable} in [Yy][Ee][Ss]) - echo -n ' rpc.statd'; rpc.statd + echo -n ' rpc.lockd'; rpc.lockd ;; esac else @@ -721,6 +721,17 @@ network_pass3() { if [ -n "${nfs_bufpackets}" ]; then sysctl vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null fi + case ${rpc_statd_enable} in + [Yy][Ee][Ss]) + echo -n ' rpc.statd'; rpc.statd + ;; + esac + + case ${rpc_lockd_enable} in + [Yy][Ee][Ss]) + echo -n ' rpc.lockd'; rpc.lockd + ;; + esac ;; esac |