Allow services to define which extra commands require the service to be started

This commit is contained in:
Roy Marples
2007-11-29 16:23:59 +00:00
parent 82df7e4584
commit 16ad975b2d
4 changed files with 26 additions and 6 deletions

View File

@@ -29,8 +29,16 @@ command_args=${dnsmasq_args}
pidfile=/var/run/dnsmasq.pid
required_files=/usr/local/etc/dnsmasq.conf
extra_started_commands="reload"
depend() {
provide dns
need localmount net
after bootmisc
}
reload() {
ebegin "Reloading ${SVCNAME}"
start-stop-daemon --signal SIGHUP --pidfile "${pidfile}"
eend $?
}