bootparamd.initd 502 B

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