|
From: <no...@so...> - 2002-05-13 14:33:09
|
Bugs item #555457, was opened at 2002-05-13 09:33 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=410643&aid=555457&group_id=34096 Category: Configuration / Scripts Group: None Status: Open Resolution: None Priority: 5 Submitted By: Heiko Zuerker (smiley73) Assigned to: Nobody/Anonymous (nobody) Summary: add dhcp relay start script Initial Comment: Hallo, wie versprochen schicke ich dir das Skript: Bei unseren Versuchen hat es funktioniert ! #!/bin/sh # $Id: dhcpd,v 1.8 2002/03/17 19:16:02 smiley73 Exp $ # # $Source: /cvsroot/devil- linux/build/scripts/scripts/dhcpd,v $ # $Revision: 1.8 $ # $Date: 2002/03/17 19:16:02 $ # # http://www.devil-linux.org # # by Thorsten Niederkrome ### BEGIN INIT INFO # Provides: dhcrelay # Required-Start: $network $syslog # Required-Stop: $network $syslog # Default-Start: 3 5 # Default-Stop: 0 1 6 # Description: starts the dhcp relay agent ### END INIT INFO source /etc/init.d/functions NAME="ISC DHCP relay agent" DAEMON=/usr/sbin/dhcrelay source /etc/dhcrelay.conf OPTIONS="" if [ "$DHCRPORT" != "" ]; then OPTIONS="$OPTIONS -p $DHCRPORT" fi if [ "$DHCRDAEMON" != "yes" ]; then OPTIONS="$OPTIONS -d" fi if [ "$DHCRQUIET" == "yes" ]; then OPTIONS="$OPTIONS -q" fi if [ "$DHCRINTERFACE" != "" ]; then for IF in $DHCRINTERFACE; do OPTIONS="$OPTIONS -i $IF" done fi if [ "$DHCRSERVER" != "" ]; then OPTIONS="$OPTIONS $DHCRSERVER" else echo "dhcrelay ERROR: No servers specified" exit 1 fi case "$1" in start) echo -n "Starting $NAME... [$OPTIONS]" loadproc $DAEMON $OPTIONS ;; stop) echo -n "Stopping $NAME..." killproc $DAEMON ;; restart) $0 stop /usr/bin/sleep 1 $0 start ;; status) statusproc $DAEMON ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; esac # End /etc/init.d/dhcrelay dhcrelay.conf (wird oben benutzt) DHCRPORT="" DHCRDAEMON="yes" DHCRQUIET="no" DHCRINTERFACE="" DHCRSERVER="" Nochmals Danke für deine Hilfe ! Gruss Heiko Knuettel ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=410643&aid=555457&group_id=34096 |