#!/bin/sh /etc/rc.common

START=94
STOP=1

USE_PROCD=1

# According to http://wiki.openwrt.org/inbox/procd-init-scripts
# there is not (currently, r41147) support for grabbing 
# the PID of a procd service, or sending a signal to that 
# service in the reload routine, but it should be possible soon

service_triggers() {
  procd_add_reload_trigger "system"
}

start_service() {
  procd_open_instance
  procd_set_param command /usr/sbin/announce
  procd_set_param respawn
  procd_close_instance
}
