diff options
author | Neil Brown <neilb@suse.de> | 2007-03-29 13:51:20 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-03-29 13:51:20 +1000 |
commit | ff691b40aaa34d5c5cc2ae732a19eed7591f297f (patch) | |
tree | 1445ed6a07346b490b77424e1902c7b8dbfd7b7f /utils | |
parent | 14a17b615fc9ed4d6e28388e836fdc3d696bbec6 (diff) | |
download | nfs-utils-ff691b40aaa34d5c5cc2ae732a19eed7591f297f.tar.gz nfs-utils-ff691b40aaa34d5c5cc2ae732a19eed7591f297f.tar.xz nfs-utils-ff691b40aaa34d5c5cc2ae732a19eed7591f297f.zip |
Add start-statd script.
This script is used by mount.nfs to run statd if needed.
It can be locally modified to change arguements if required.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/statd/Makefile.am | 1 | ||||
-rw-r--r-- | utils/statd/start-statd | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/utils/statd/Makefile.am b/utils/statd/Makefile.am index 2f71e29..8a3ba4e 100644 --- a/utils/statd/Makefile.am +++ b/utils/statd/Makefile.am @@ -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 index 0000000..6e7ea04 --- /dev/null +++ b/utils/statd/start-statd @@ -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 + |