PageRenderTime 119ms CodeModel.GetById 117ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/init/statd.conf

http://github.com/brinkman83/bashrc
Config | 34 lines | 25 code | 9 blank | 0 comment | 0 complexity | c2b3a07d514aa22cd4cea1275a22f0ad MD5 | raw file
 1# statd - NSM status monitor
 2
 3description	"NSM status monitor"
 4author		"Steve Langasek <steve.langasek@canonical.com>"
 5
 6start on (started portmap or mounting TYPE=nfs)
 7stop on stopping portmap
 8
 9expect fork
10respawn
11
12env DEFAULTFILE=/etc/default/nfs-common
13
14pre-start script
15	if [ -f "$DEFAULTFILE" ]; then
16	    . "$DEFAULTFILE"
17	fi
18
19	[ "x$NEED_STATD" != xno ] || { stop; exit 0; }
20
21	start portmap || true
22	status portmap | grep -q start/running
23	exec sm-notify
24end script
25
26script
27	if [ -f "$DEFAULTFILE" ]; then
28	    . "$DEFAULTFILE"
29	fi
30
31	if [ "x$NEED_STATD" != xno ]; then
32		exec rpc.statd -L $STATDOPTS
33	fi
34end script