#!/bin/bash # # Startscript for named bind v8 # (c) RainMaker Multimedia OHG # Autor: Harald Küller # # Datum: 28.01.2001 source /etc/init.d/functions case "$1" in start) if [ -f /etc/sysconfig/net/rinetd.conf ]; then echo -n "Starting rinetd" loadproc /usr/sbin/rinetd -c /etc/sysconfig/net/rinetd.conf fi ;; stop) if [ -f /etc/sysconfig/net/rinetd.conf ]; then echo -n "Stopping rinetd" killproc /usr/sbin/rinetd fi ;; restart) $0 stop sleep 1 $0 start ;; *) echo "USAGE: $0 {start|stop|restart}" esac