5a6,14 > INSTANCE=${SVCNAME#*.} > if [[ -n "${INSTANCE}" ]] && [[ "${INSTANCE}" != "mydns" ]]; then > PIDFILE="/var/run/mydns.${INSTANCE}.pid" > CONF="/etc/mydns.${INSTANCE}.conf" > else > PIDFILE="/var/run/mydns.pid" > CONF="/etc/mydns.conf" > fi > 12,13c21,22 < if [ ! -f /etc/mydns.conf ] ; then < eerror "No /etc/mydns.conf file exists!" --- > if [[ ! -f ${CONF} ]]; then > eerror "No ${CONF} file exists!" 15,16c24,25 < eerror "# /usr/sbin/mydns --dump-config > /etc/mydns.conf" < eerror "# chmod 0600 /etc/mydns.conf" --- > eerror "# /usr/sbin/mydns --dump-config > ${CONF}" > eerror "# chmod 0600 ${CONF}" 21a31,32 > ebegin "Starting ${SVCNAME}" > 23,24c34,36 < ebegin "Starting mydns" < start-stop-daemon --start --quiet --exec /usr/sbin/mydns -- -b --- > > start-stop-daemon --start --quiet --exec /usr/sbin/mydns \ > --pidfile=${PIDFILE} -- --conf=${CONF} -b 29,33c41 < ebegin "Stopping mydns" < PIDFILE=`cat /etc/mydns.conf | grep pidfile | awk '{ print $3 }'` < if [ $PIDFILE == "" ]; then < PIDFILE=/var/run/mydns.pid < fi --- > ebegin "Stopping ${SVCNAME}"