Allow services to define which extra commands require the service to be started
This commit is contained in:
@@ -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 $?
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ command=/usr/sbin/named
|
||||
command_args=${named_args}
|
||||
pidfile=/var/run/named/pid
|
||||
name="Domain Name server"
|
||||
extra_commands="reload"
|
||||
extra_started_commands="reload"
|
||||
|
||||
namedb=/etc/namedb
|
||||
named_uid=${named_uid:-bind}
|
||||
|
||||
Reference in New Issue
Block a user