View previous topic :: View next topic |
Author |
Message |
deranonyme Guru
Joined: 09 Jul 2005 Posts: 512
|
Posted: Fri Oct 05, 2007 4:59 pm Post subject: Probleme mit Init-Script |
|
|
Hallo
Ich habe eine Telefonanlage von Agfeo, für die es löblicherweise ein Configprogramm für Linux gibt. Leider stört das mitgelieferte Initscript seit kurzen (Systemupdate) meinen Bootvorgang. Es wird als letztes ausgeführt ist aber kein Gentoo-Script, und warscheinlich deshalb schaltet nach Abarbeitung der Initscripte der Screen auf die erste Konsole um, so das die grafische Oberfläche verschwindet und ich manuell zurückschalten muss. Ist ja auch verständlich, da es für das System ein Fehler im Bootprozess ist, den es mir zeigen will. Will ich aber nicht! Jetzt meine Frage. Wie kann ich das verhindern? In /etc/conf.d/xdm ist XSTATICVT gesetzt. Gibt es eine Variable, die das Umschalten bei Fehlern auf Konsole 1 Verhindert, oder kann mir jemand beim Umschreiben des Strtscriptes helfen? Ist effektiv nicht lang
Danke Frank |
|
Back to top |
|
|
Fauli l33t
Joined: 24 Apr 2004 Posts: 760 Location: Moers, Germany
|
Posted: Fri Oct 05, 2007 7:59 pm Post subject: |
|
|
Code: | depend() {
before xdm
} |
Wenn du die obige Funktion ins Skript einfügst, sollte es vor xdm starten. Das sollte verhindern, dass die Anzeige wieder auf VT 1 umschaltet. _________________ Do your part to beautify the web! Turn off link underlining! |
|
Back to top |
|
|
Finswimmer Bodhisattva
Joined: 02 Sep 2004 Posts: 5467 Location: Langen (Hessen), Germany
|
Posted: Fri Oct 05, 2007 8:47 pm Post subject: |
|
|
Dann zeig das Script und den Fehler mal. _________________ Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke |
|
Back to top |
|
|
deranonyme Guru
Joined: 09 Jul 2005 Posts: 512
|
Posted: Sat Oct 06, 2007 6:21 am Post subject: |
|
|
Finswimmer wrote: | Dann zeig das Script und den Fehler mal. |
Aber gene doch
Hier ist das Skript - ungekürzt in voller Schönheit.
Code: | #!/bin/sh
#
# TK-Suite Server control script, copied from the Apache control script
# #####################################################################
#
# Apache control script designed to allow an easy command line interface
# to controlling Apache. Written by Marc Slemko, 1997/08/23
#
# The exit codes returned are:
# 0 - operation completed successfully
# 1 -
# 2 - usage error
# 3 - httpd could not be started
# 4 - httpd could not be stopped
# 5 - httpd could not be started during a restart
# 6 - httpd could not be restarted during a restart
# 7 - httpd could not be restarted during a graceful restart
# 8 - configuration syntax error
#
# When multiple arguments are given, only the error from the _last_
# one is reported. Run "apachectl help" for usage info
#
#
# |||||||||||||||||||| START CONFIGURATION SECTION ||||||||||||||||||||
# -------------------- --------------------
#
# the path to your PID file
PIDFILE=/var/run/tksock.pid
#
# the path to your httpd binary, including options if necessary
HTTPD_PATH=/usr/local/tksuite_server
HTTPD=$HTTPD_PATH/tksock
#
# -------------------- --------------------
# |||||||||||||||||||| END CONFIGURATION SECTION ||||||||||||||||||||
ERROR=0
ARGV="$@"
if [ "x$ARGV" = "x" ] ; then
ARGS="help"
fi
for ARG in $@ $ARGS
do
# check for pidfile
if [ -f $PIDFILE ] ; then
PID=`cat $PIDFILE`
if [ "x$PID" != "x" ] && kill -0 $PID 2>/dev/null ; then
STATUS="tksock (pid $PID) running"
RUNNING=1
else
STATUS="tksock (pid $PID?) not running"
RUNNING=0
fi
else
STATUS="tksock (no pid file) not running"
RUNNING=0
fi
case $ARG in
start)
if [ $RUNNING -eq 1 ]; then
echo "$0 $ARG: tksock (pid $PID) already running"
continue
fi
echo "$0 $ARG: starting tksock..."
cd $HTTPD_PATH
# see http://www.snailbook.com/faq/background-jobs.auto.html for explanation
if $HTTPD -s < /dev/null >& /dev/null ; then
sleep 2
echo "$0 $ARG: tksock started"
# if we don't sleep, tkmedia gets killed (why?)
else
echo "$0 $ARG: tksock could not be started"
ERROR=3
fi
;;
stop)
if [ $RUNNING -eq 0 ]; then
echo "$0 $ARG: $STATUS"
continue
fi
echo "$0 $ARG: stopping tksock..."
if kill $PID ; then
while [ -e "/proc/$PID" ]
do
sleep 1
done
echo "$0 $ARG: tksock stopped"
else
echo "$0 $ARG: tksock could not be stopped"
ERROR=4
fi
;;
configtest)
if $HTTPD -t; then
:
else
ERROR=8
fi
;;
*)
echo "usage: $0 (start|stop|configtest|help)"
cat <<EOF
start - start tksock
stop - stop tksock
configtest - do a configuration syntax test
help - this screen
EOF
ERROR=2
;;
esac
done
exit $ERROR
## ====================================================================
## The Apache Software License, Version 1.1
##
## Copyright (c) 2000-2002 The Apache Software Foundation. All rights
## reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions
## are met:
##
## 1. Redistributions of source code must retain the above copyright
## notice, this list of conditions and the following disclaimer.
##
## 2. Redistributions in binary form must reproduce the above copyright
## notice, this list of conditions and the following disclaimer in
## the documentation and/or other materials provided with the
## distribution.
##
## 3. The end-user documentation included with the redistribution,
## if any, must include the following acknowledgment:
## "This product includes software developed by the
## Apache Software Foundation (http://www.apache.org/)."
## Alternately, this acknowledgment may appear in the software itself,
## if and wherever such third-party acknowledgments normally appear.
##
## 4. The names "Apache" and "Apache Software Foundation" must
## not be used to endorse or promote products derived from this
## software without prior written permission. For written
## permission, please contact apache@apache.org.
##
## 5. Products derived from this software may not be called "Apache",
## nor may "Apache" appear in their name, without prior written
## permission of the Apache Software Foundation.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
## OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
## DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
## ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
## ====================================================================
##
## This software consists of voluntary contributions made by many
## individuals on behalf of the Apache Software Foundation. For more
## information on the Apache Software Foundation, please see
## <http://www.apache.org/>.
##
## Portions of this software are based upon public domain software
## originally written at the National Center for Supercomputing Applications,
## University of Illinois, Urbana-Champaign.
##
#
|
Wäre schön, wenn es jemand anpassen könnte. Seit ich es deaktiviert habe schaltet nichts mehr um
Danke Frank |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|