/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. description "NSM status monitor"
  3. author "Steve Langasek <steve.langasek@canonical.com>"
  4. start on (started portmap or mounting TYPE=nfs)
  5. stop on stopping portmap
  6. expect fork
  7. respawn
  8. env DEFAULTFILE=/etc/default/nfs-common
  9. pre-start script
  10. if [ -f "$DEFAULTFILE" ]; then
  11. . "$DEFAULTFILE"
  12. fi
  13. [ "x$NEED_STATD" != xno ] || { stop; exit 0; }
  14. start portmap || true
  15. status portmap | grep -q start/running
  16. exec sm-notify
  17. end script
  18. script
  19. if [ -f "$DEFAULTFILE" ]; then
  20. . "$DEFAULTFILE"
  21. fi
  22. if [ "x$NEED_STATD" != xno ]; then
  23. exec rpc.statd -L $STATDOPTS
  24. fi
  25. end script