Search
j0ke.net Open Build Service
>
Projects
>
home:opeter
>
powerdns
> pdns-3.2-init.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File pdns-3.2-init.patch of Package powerdns (Revision 51)
Currently displaying revision
51
,
show latest
--- pdns/pdns.in.orig 2013-01-07 11:29:06.301972809 +0100 +++ pdns/pdns.in 2013-01-07 12:00:16.217749159 +0100 @@ -2,17 +2,16 @@ # chkconfig: - 80 75 # description: PDNS is a versatile high performance authoritative nameserver -### BEGIN INIT INFO -# Provides: pdns -# Required-Start: $remote_fs $network $syslog -# Required-Stop: $remote_fs $network $syslog -# Should-Start: $all -# Should-Stop: -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Start/stop PowerDNS authoritative server -# Description: Start/stop PowerDNS authoritative server -### END INIT INFO +# +# powerdns This shell script takes care of starting and stopping powerdns. +# +# chkconfig: 345 80 75 +# description: PowerDNS is a versatile high performance \ +# authoritative nameserver +# probe: true +# processname: powerdns +# pidfile: /var/run/powerdns/powerdns.pid +# config: /etc/powerdns/pdns.conf set -e @@ -28,11 +27,13 @@ cd $SOCKETPATH suffix=$(basename $0 | cut -d- -f2- -s) -if [ -n "$suffix" ] +if [ $suffix ] then + [ -f /etc/pdns/$suffix/pdns.conf ] || exit 0 EXTRAOPTS=--config-name=$suffix PROGNAME=pdns-$suffix else + [ -f /etc/pdns/pdns.conf ] || exit 0 PROGNAME=pdns fi @@ -63,6 +64,7 @@ if test "$NOTRUNNING" = "0" then doPC quit + rm -f /var/lock/subsys/pdns echo $ret else echo "not running" @@ -73,6 +75,7 @@ force-stop) echo -n "Stopping PowerDNS authoritative nameserver: " killall -v -9 pdns_server + rm -f /var/lock/subsys/pdns echo "killed" ;; @@ -84,6 +87,7 @@ else if $pdns_server --daemon --guardian=yes then + touch /var/lock/subsys/pdns echo "started" else echo "starting failed"