blockd.init 288 B

123456789101112131415161718192021
  1. #!/bin/sh /etc/rc.common
  2. START=80
  3. USE_PROCD=1
  4. PROG=/sbin/blockd
  5. service_triggers() {
  6. procd_add_reload_trigger "fstab"
  7. }
  8. reload_service() {
  9. block autofs start
  10. }
  11. start_service() {
  12. procd_open_instance
  13. procd_set_param command "$PROG"
  14. procd_set_param respawn
  15. procd_close_instance
  16. }