]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Add start-statd script.
authorNeil Brown <neilb@suse.de>
Thu, 29 Mar 2007 03:51:20 +0000 (13:51 +1000)
committerNeil Brown <neilb@suse.de>
Thu, 29 Mar 2007 03:51:20 +0000 (13:51 +1000)
This script is used by mount.nfs to run statd if needed.
It can be locally modified to change arguements if required.

utils/statd/Makefile.am
utils/statd/start-statd [new file with mode: 0644]

index 2f71e297d72ed48fe7ee3bf3415cd78943c33529..8a3ba4ede06ced52f9ccddba35d52e79a2947f50 100644 (file)
@@ -12,6 +12,7 @@ GENFILES      = $(GENFILES_CLNT) $(GENFILES_SVC) $(GENFILES_XDR) $(GENFILES_H)
 RPCPREFIX      = rpc.
 KPREFIX                = @kprefix@
 sbin_PROGRAMS  = statd sm-notify
+dist_sbin_SCRIPTS      = start-statd
 statd_SOURCES = callback.c notlist.c log.c misc.c monitor.c \
                simu.c stat.c statd.c svc_run.c rmtcall.c \
                sm_inter_clnt.c sm_inter_svc.c sm_inter_xdr.c log.h \
diff --git a/utils/statd/start-statd b/utils/statd/start-statd
new file mode 100644 (file)
index 0000000..6e7ea04
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+# nfsmount calls this script when mounting a filesystem with locking
+# enabled, but when statd does not seem to be running (based on
+# /var/run/rpc.statd.pid).
+# It should run run statd with whatever flags are apropriate for this
+# site.
+PATH=/sbin:/usr/sbin
+exec rpc.statd --no-notify
+