rpc.idmapd.initd 484 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/openrc-run
  2. # Copyright 1999-2008 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/bin/rpc.idmapd
  6. depend() {
  7. use ypbind net
  8. need portmap rpc.pipefs
  9. after quota
  10. }
  11. start() {
  12. ebegin "Starting idmapd"
  13. ${rpc_bin} ${OPTS_RPC_IDMAPD}
  14. eend $? "make sure DNOTIFY support is enabled ..."
  15. }
  16. stop() {
  17. ebegin "Stopping idmapd"
  18. start-stop-daemon --stop --exec ${rpc_bin}
  19. eend $?
  20. }