Mailinglist Archive: opensuse-de (5973 mails)
| < Previous | Next > |
Re: boot.local
- From: xmail@xxxxxx (ChristophR.)
- Date: Tue Oct 24 16:34:47 2000
- Message-id: <00102418394200.01485@linux>
so aber mein Script wird nicht autom. von init aufgerufen!
Wenn ich es manuel starte ("/sbin/init.d/myscript") läuft es (Kontrolle
mit ps).
Ich habe 2 Links in "/sbin/init.d/r2.d/": S98myscript und K98myscript.
Hier der Anfang des Scriptes:
#! /bin/sh
# Copyright (c) 1995-2000 SuSE GmbH Nuernberg, Germany.
#
# Author:
#
# /sbin/init.d/<skeleton>
#
# and symbolic its link
#
# /sbin/rc<skeleton>
#
.. /etc/rc.status
#. /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_MYSCRIPT=yes
test "$START_MYSCRIPT" = yes || exit 0
# Shell functions sourced from /etc/rc.status:
# rc_check check and set local and overall rc status
# rc_status check and set local and overall rc status
# rc_status -v ditto but be verbose in local rc status
# rc_status -v -r ditto and clear the local rc status
# rc_failed set local and overall rc status to failed
# rc_reset clear local rc status (overall remains)
# rc_exit exit appropriate to overall rc status
# First reset status of this service
rc_reset
case "$1" in
start)
echo -n "Starting service myscript"
## Start daemon with startproc(8). If this fails
## the echo return value is set appropriate.
startproc /home/user4/myscript.pl &
# Remember status and be verbose
rc_status -v
;;
stop)
Wo könnte der Fehler liegen?
Grüße
ChristophRaucher
---------------------------------------------------------------------
To unsubscribe, e-mail: suse-linux-unsubscribe@xxxxxxxx
For additional commands, e-mail: suse-linux-help@xxxxxxxx
| < Previous | Next > |