diff options
author | Neil Brown <neilb@suse.de> | 2007-03-16 11:24:15 +1100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-03-16 11:24:15 +1100 |
commit | 993ec3f888a28c60d49ae0f8f1aa725b6b618a81 (patch) | |
tree | f9bf13c76979fc1a4958dfad37459cb7bf823c2e /configure.in | |
parent | dad50c0e589b5651242de50e81200b036d995b73 (diff) | |
download | nfs-utils-993ec3f888a28c60d49ae0f8f1aa725b6b618a81.tar.gz nfs-utils-993ec3f888a28c60d49ae0f8f1aa725b6b618a81.tar.xz nfs-utils-993ec3f888a28c60d49ae0f8f1aa725b6b618a81.zip |
Automatically start statd when mounting an nfs filesystem.
If statd is not running (/var/run/rpc.statd.pid) when an nfs filesystem
is mounted (v2 or v3, with remote locking enabled), and if
/usr/sbin/start-statd (or other program specified at config time) is
present, then run that program to start statd.
This means that statd does not need to be running "just in case".
It only needs to be started at boot time if the nfs server is
started.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 258188a..1a1ce1a 100644 --- a/configure.in +++ b/configure.in @@ -38,6 +38,15 @@ AC_ARG_WITH(statduser, statduser=nobody fi) AC_SUBST(statduser) +AC_ARG_WITH(start-statd, + [AC_HELP_STRING([--with-start-statd=scriptname], + [When an nfs filesystems is mounted with locking, run this script] + )], + startstatd=$withval, + startstatd=/usr/sbin/start-statd + ) + AC_SUBST(startstatd) + AC_DEFINE_UNQUOTED(START_STATD, "$startstatd", [Define this to a script which can start statd on mount]) AC_ARG_ENABLE(nfsv3, [AC_HELP_STRING([--enable-nfsv3], [enable support for NFSv3 @<:@default=yes@:>@])], |