rpc.rquotad.initd 448 B

1234567891011121314151617181920212223242526
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2007 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. [ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
  5. rpc_bin=/usr/sbin/rpc.rquotad
  6. depend() {
  7. use ypbind net
  8. need portmap
  9. after quota
  10. }
  11. start() {
  12. ebegin "Starting rpc.rquotad"
  13. ${rpc_bin} ${OPTS_RPC_RQUOTAD}
  14. eend $?
  15. }
  16. stop() {
  17. ebegin "Stopping rpc.rquotad"
  18. start-stop-daemon --stop --quiet --exec ${rpc_bin}
  19. eend $?
  20. }