aboutsummaryrefslogtreecommitdiff
path: root/net/pdns-recursor/files/pdns-recursor.init
blob: 26fbea105d77e6e0cc76c748753f50955b47a0f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh /etc/rc.common
START=99

USE_PROCD=1

start_service() {
	[ -e /etc/powerdns/recursor.conf ] || return 1

	procd_open_instance
	procd_set_param command /usr/sbin/pdns_recursor --daemon=no
	procd_set_param file /etc/powerdns/recursor.conf
	procd_set_param respawn
	procd_close_instance
}