Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
dnsmasq-openrc script
[/etc/init.d/dnsmasq]
#!/usr/bin/openrc-run
depend() {
use net
}
start() {
ebegin "Starting dnsmasq"
start-stop-daemon --start --exec /usr/bin/dnsmasq -- ${DNSMASQ_OPTS}
eend $?
}
stop() {
ebegin "Stopping dnsmasq"
start-stop-daemon --stop --quiet --pidfile /run/dnsmasq.pid
eend $?
}
do_sig() {
local sig=$1 ; shift
ebegin "$*"
start-stop-daemon --signal ${sig} --pidfile /run/dnsmasq.pid
eend $?
}
[/etc/conf.d/dnsmasq]
#DNSMASQ_OPTS="--enable-dbus --user=dnsmasq"
DNSMASQ_OPTS=""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.