Thread View: gmane.linux.debian.user.german
7 messages
7 total messages
Started by "Ben E. Hard"
Tue, 21 Apr 2009 18:00
init-script startet nicht
Author: "Ben E. Hard"
Date: Tue, 21 Apr 2009 18:00
Date: Tue, 21 Apr 2009 18:00
39 lines
1103 bytes
1103 bytes
Ich habe ein Init-script zur Lüftersteuerung, das aus mir unerklärlichen Gründen nicht gestartet wird (unter ubuntu jaunty, hoffe, ich darf mich weiterhin hierher wenden...). Manueller Start mit invoke-rc.d tp-fancontrol start oder /etc/init.d/tp-fancontrol start funktioniert, symlinks bestehen (mit update-rc.d tp-fancontrol defaults erstellt). In der syslog findet sich nichts, ich habe daher keinen Anhaltspunkt, worin der Fehler liegen könnte. Das init-script habe ich von http://www.thinkwiki.org/index.php?title=Code/tp- fancontrol.init.debian&action=raw&ctype=application/octet-stream es startet tp-fancontrol von http://www.thinkwiki.org/index.php?title=Code/tp- fancontrol&action=raw&ctype=application/octet-stream Any hints? Gruß Ben -- Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/ Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-REQUEST@lists.debian.org mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)
Re: init-script startet nicht
Author: Stefan Bauer
Date: Tue, 21 Apr 2009 20:56
Date: Tue, 21 Apr 2009 20:56
29 lines
831 bytes
831 bytes
Ben E. Hard schrieb: > Ich habe ein Init-script zur Lüftersteuerung, das aus mir unerklärlichen > Gründen nicht gestartet wird (unter ubuntu jaunty, hoffe, ich darf mich > weiterhin hierher wenden...). Manueller Start mit invoke-rc.d tp-fancontrol > start oder /etc/init.d/tp-fancontrol start funktioniert, symlinks bestehen > (mit update-rc.d tp-fancontrol defaults erstellt). Ohne das Script angesehen zu haben vermute ich, dass es einfach zu früh gestartet wird im passenden Runlevel. Gruß -- Stefan -- Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/ Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-REQUEST@lists.debian.org mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)
AW: init-script startet nicht
Author: Thomas Fugmann
Date: Wed, 22 Apr 2009 11:43
Date: Wed, 22 Apr 2009 11:43
54 lines
3501 bytes
3501 bytes
--0-142058871-1240400584=:70519 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >Stefan Bauer wrote: > >> Ben E. Hard schrieb: >>> Ich habe ein Init-script zur LÃŒftersteuerung, das aus mir >>> unerklÀrlichen GrÃŒnden nicht gestartet wird (unter ubuntu jaunty, >>> hoffe, ich darf mich weiterhin hierher wenden...). Manueller Start mit >>> invoke-rc.d tp-fancontrol start oder /etc/init.d/tp-fancontrol start >>> funktioniert, symlinks bestehen (mit update-rc.d tp-fancontrol defaults >>> erstellt). >> >> Ohne das Script angesehen zu haben vermute ich, dass es einfach zu >> früh gestartet wird im passenden Runlevel. > >Das habe ich auch schon gedacht und es deshalb mal als S99 verlinken lassen. >Hat auch nichts gebracht. Ebensowenig das Verschieben nach oben auf S19 >(normal ist S20). > >LG >Ben > Hallo, auch: ohne das Skript angesehen zu haben: mir fällt hierzu die "PATH"-Variable ein. Möglicherweise findet er nach der "root"-Anmeldung (einen) bestimmte(n) Befehl(e), den/die er beim Boot-Vorgang nicht findet... LG Thomas --0-142058871-1240400584=:70519 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV> </DIV> <DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR> <DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma></FONT><BR>>Stefan Bauer wrote:<BR>><BR>>> Ben E. Hard schrieb:<BR>>>> Ich habe ein Init-script zur LÃŒftersteuerung, das aus mir<BR>>>> unerklÀrlichen GrÃŒnden nicht gestartet wird (unter ubuntu jaunty,<BR>>>> hoffe, ich darf mich weiterhin hierher wenden...). Manueller Start mit<BR>>>> invoke-rc.d tp-fancontrol start oder /etc/init.d/tp-fancontrol start<BR>>>> funktioniert, symlinks bestehen (mit update-rc.d tp-fancontrol defaults<BR>>>> erstellt).<BR>>> <BR>>> Ohne das Script angesehen zu haben vermute ich, dass es einfach zu<BR>>> früh gestartet wird im passenden Runlevel.<BR>><BR>>Das habe ich auch schon gedacht und es deshalb mal als S99 verlinken lassen. <BR>>Hat auch nichts gebracht. Ebensowenig das Verschieben nach oben auf S19 <BR>>(normal ist S20).<BR>><BR>>LG<BR>>Ben<BR>><BR><BR>Hallo,</DIV> <DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">auch: ohne das Skript angesehen zu haben:</DIV> <DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">mir fällt hierzu die "PATH"-Variable ein. Möglicherweise findet er nach der "root"-Anmeldung (einen) bestimmte(n) Befehl(e), den/die er beim Boot-Vorgang nicht findet....</DIV> <DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV> <DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">LG<BR>Thomas</DIV> <DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV></DIV></div><br> </body></html> --0-142058871-1240400584=:70519--
Re: init-script startet nicht
Author: "Ben E. Hard"
Date: Wed, 22 Apr 2009 11:47
Date: Wed, 22 Apr 2009 11:47
33 lines
1037 bytes
1037 bytes
Stefan Bauer wrote: > Ben E. Hard schrieb: >> Ich habe ein Init-script zur LÃŒftersteuerung, das aus mir >> unerklÀrlichen GrÃŒnden nicht gestartet wird (unter ubuntu jaunty, >> hoffe, ich darf mich weiterhin hierher wenden...). Manueller Start mit >> invoke-rc.d tp-fancontrol start oder /etc/init.d/tp-fancontrol start >> funktioniert, symlinks bestehen (mit update-rc.d tp-fancontrol defaults >> erstellt). > > Ohne das Script angesehen zu haben vermute ich, dass es einfach zu > früh gestartet wird im passenden Runlevel. Das habe ich auch schon gedacht und es deshalb mal als S99 verlinken lassen. Hat auch nichts gebracht. Ebensowenig das Verschieben nach oben auf S19 (normal ist S20). LG Ben -- Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/ Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-REQUEST@lists.debian.org mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)
Re: AW: init-script startet nicht
Author: "Ben E. Hard"
Date: Wed, 22 Apr 2009 14:32
Date: Wed, 22 Apr 2009 14:32
38 lines
1089 bytes
1089 bytes
Thomas Fugmann wrote: > > Hallo, > auch: ohne das Skript angesehen zu haben: > mir fällt hierzu die "PATH"-Variable ein. Möglicherweise findet er nach > der "root"-Anmeldung (einen) bestimmte(n) Befehl(e), den/die er beim > Boot-Vorgang nicht findet... PATH=/sbin:/usr/sbin:/bin:/usr/bin ist doch eigentlich nichts besonderes, oder? Mir fällt noch ein, dass das Skript erfordert, dass das modul thinkpad_acpi geladen ist. Ich gehe aber davon aus, dass diese Module vor dem Ausführen der init-scripts geladen werden. Ist das richtig? Hat jemand vielleicht noch einen Tipp, wie ich erreichen kann, dass die Ausführung der init-skripte irgendwo in einem log auftaucht? Dann würde ich vielleicht sehen, welche Fehlermeldung entsteht. Gruß Ben -- Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/ Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-REQUEST@lists.debian.org mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)
Re: init-script startet nicht
Author: Heiko Schlitterm
Date: Wed, 22 Apr 2009 15:06
Date: Wed, 22 Apr 2009 15:06
47 lines
1428 bytes
1428 bytes
--ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ben E. Hard <bve@gmx.de> (Mi 22 Apr 2009 14:32:46 CEST): > Thomas Fugmann wrote: > Hat jemand vielleicht noch einen Tipp, wie ich erreichen kann, dass die > Ausführung der init-skripte irgendwo in einem log auftaucht? Dann würde ich > vielleicht sehen, welche Fehlermeldung entsteht. Kannst Du den Script mal veröffentlichen? Die Sprachumgebung wird auch gerne genommen als Fehlerquelle. Z.B. LC_ALL=C ifconfig | grep addr vs. LC_ALL=de_DE.UTF-8 ifconfig | grep addr Best regards from Dresden/Germany Viele Grüße aus Dresden Heiko Schlittermann -- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann HS12-RIPE ----------------------------------------- gnupg encrypted messages are welcome - key ID: 48D0359B --------------- gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B - --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAknvFlwACgkQ7k6smEjQNZt7kQCg1/MgdP2QsOkS8CVSy8qNMQNU 4JAAnRHJ1VNBELbvkdsS1tCHiR5Eqi9Y =pi8W -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv--
Re: init-script startet nicht
Author: "Ben E. Hard"
Date: Wed, 22 Apr 2009 16:01
Date: Wed, 22 Apr 2009 16:01
191 lines
5450 bytes
5450 bytes
Heiko Schlittermann wrote: > Ben E. Hard <bve@gmx.de> (Mi 22 Apr 2009 14:32:46 CEST): >> Thomas Fugmann wrote: >> Hat jemand vielleicht noch einen Tipp, wie ich erreichen kann, dass die >> Ausführung der init-skripte irgendwo in einem log auftaucht? Dann würde >> ich vielleicht sehen, welche Fehlermeldung entsteht. > > Kannst Du den Script mal veröffentlichen? #! /bin/sh ### BEGIN INIT INFO # Provides: tp-fancontrol # Required-Start: - # Required-Stop: - # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Starts the tp-fancontrol script as a daemon # Description: This init script starts the tp-fancontrol script as # a daemon to control the fan speed of an IBM # Thinkpad. You have to modprobe "ibm_acpi" for work # with Kernels newer or equel then 2.6.19 or # modprobed it with "experimental=1" ### END INIT INFO # Author: Simon Effenberg <savar@schuldeigen.de> # # This init script is based on the script by # Ronald Aigner <ra3@os.inf.tu-dresden.de> # # Do NOT "set -e" /bin/cp /dev/null /tmp/fan_ran # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Thinkpad Fan Control" NAME=tp-fancontrol DAEMON=/usr/local/bin/$NAME DAEMON_ARGS="-d" PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Read configuration variable file if it is present [ -r /etc/${NAME}.conf ] && . /etc/${NAME}.conf # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions # # Function that starts the daemon/service # do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ || return 1 # building DAEMON_ARGS [ ${LOG_SYSLOG:-1} = "1" ] && DAEMON_ARGS="${DAEMON_ARGS} -l" [ ${QUIET:-1} = "1" ] && DAEMON_ARGS="${DAEMON_ARGS} -q" [ ${TEMP_SHIFT:-0} != "0" ] && DAEMON_ARGS="${DAEMON_ARGS} -s ${TEMP_SHIFT}" start-stop-daemon --start --quiet --nicelevel -10 --pidfile $PIDFILE --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2 } # # Function that stops the daemon/service # do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks # and if the daemon is only ever run from this initscript. # If the above conditions are not satisfied then add some other code # that waits for the process to drop all resources that could be # needed by services started subsequently. A last resort is to # sleep for some time. start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON [ "$?" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE return "$RETVAL" } # # Function that stop/sart the daemon/service # do_reload() { do_stop do_start return 0 } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 exit 3 ;; esac : > Die Sprachumgebung wird auch gerne genommen als Fehlerquelle. > > Z.B. > LC_ALL=C ifconfig | grep addr > vs. > LC_ALL=de_DE.UTF-8 ifconfig | grep addr Kein LC_[XX] im Skript vorhanden. Gruß Ben -- Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/ Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-REQUEST@lists.debian.org mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads