dbus: update to 1.10.16
[openadk.git] / package / pdnsd / files / pdnsd.init
blob5d6111e697b8e53abfed161ec8c5a282106374d3
1 #!/bin/sh
2 #PKG pdnsd
3 #INIT 60
4 . /etc/rc.conf
6 case $1 in
7 autostop) ;;
8 autostart)
9 test x"${pdnsd:-NO}" = x"NO" && exit 0
10 test x"$pdnsd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
11 exec sh $0 start
13 start)
14 [ -f /etc/pdnsd.conf ] || exit
15 mkdir -p /var/cache/pdnsd
16 touch /var/cache/pdnsd/pdnsd.cache
17 # this allows for strict_setuid
18 chown -R nobody:nogroup /var/cache/pdnsd
19 /usr/sbin/pdnsd -d
21 stop)
22 kill $(pgrep -f /usr/sbin/pdnsd)
24 restart)
25 sh $0 stop
26 sleep 1
27 sh $0 start
30 echo "Usage: $0 {start | stop | restart}"
31 exit 1
33 esac
34 exit $?