Mailinglist Archive: opensuse-de (6694 mails)

< Previous Next >
Probleme mit Start-Skripten
  • From: Marco Baumgartl <Marco.Baumgartl@xxxxxx>
  • Date: Thu, 17 Jan 2002 18:41:18 +0100
  • Message-id: <3C470CBE.5080202@xxxxxx>
Hallo,

ich habe mir gestern DSL eingerichtet und fuer den Komfort noch ein Skript (/sbin/init.d/adsl) angelegt (ich habe noch 'ne 6.4):

-rwxr--r-- 1 root root 1173 Jan 17 18:36 adsl

In der rc.config steht jetzt noch START_ADSL=yes und ADSL_DEVICE=eth1 drin. Ansonsten habe ich (bewusst) nix veraendert, aber trotzdem gibt's beim Starten von rc-Skripten jetzt Probleme:
/sbin/rcmysql: ADSL: command not found
/sbin/rcfirewall: ADSL: command not found
usw.

Ich kann mir darauf absolut keinen Reim machen :(

MfG
Marco

Hier noch das Skript. Sieht IMHO normal aus und meiner Meinung nach nix damit zu tun.

#! /bin/sh
#
# Init-Script for SuSE Linux
#
# Author: Michael Schlenstedt
# Contact: Michael@xxxxxxxxxxxxx
# Home: http://www.adsl4linux.de
#
# /etc/rc.d/adsl
#
# Version: 0.2b
#

. /etc/rc.config

# Determine the base and follow a runlevel link name.
base=${0##*/}
link=${base#*[SK][0-9][0-9]}

# Force execution if not called by a runlevel directory.
test $link = $base && START_ADSL=yes
test "$START_ADSL" = yes || exit 0

# The echo return value for success (defined in /etc/rc.config).

PPPD=/usr/sbin/pppd

return=$rc_done
case "$1" in
start)
echo -n "Starting ADSL"
startproc $PPPD /dev/pppox0 38400 \
|| return=$rc_failed
echo -e "$return"
;;
stop)
echo -n "Shutting down ADSL"
killproc -TERM $PPPD || return=$rc_failed
echo -e "$return"
;;
restart)
$0 stop && $0 start || return=$rc_failed
;;
reload)
echo -n "Reload service ADSL"
killproc -HUP $PPPD || return=$rc_failed
echo -e "$return"
;;
status)
echo -n "Checking for service ADSL: "
checkproc $PPPD && echo OK || echo No process
;;
*)
echo "Usage: $0 {start|stop|restart|reload|status}"
exit 1
esac

test "$return" = "$rc_done" || exit 1
exit 0

--
Key fingerprint = ED8F 98B2 D34D 6964 1EFB 23B4 079F 5023 5C01 F3C7


< Previous Next >
Follow Ups