23.04.2024, 19:33 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
shame
Titel: Sudden errors on boot...  BeitragVerfasst am: 05.06.2006, 12:27 Uhr



Anmeldung: 16. Apr 2006
Beiträge: 207
Wohnort: England
A couple of days ago, after a dist-upgrade I noticed this error on boot -
Code:
/lib/lsb/init-functions  :  line 82: [: argument expected

The error appears many times all the way through the boot process.
I've had a look at the init-functions file and this is line 82 -
Code:
elif [ -x /bin/pidof -a ! $specified ]; then

I'm not sure what the problem is.

I haven't noticed any major problems other than the progress bar on splashy isn't working (I haven't upgraded or touched splashy in any way so I don't think it has anything to do with the error, rather that the error is affecting splashy).
Also removable media is behaving erratically, sometimes media is automounting fine and others it is failing and saying pmount not found.
Again, I don't know if that's related to the error.

Since it wasn't causing major problems I've just left it to see if it sorted itself out with further upgrades but it hasn't so far.

_________________
sidux 32 & 64 | PCLinuxOS | PC-BSD
repository of shame - compiz fusion & beryl repo for debian Sid/Lenny/Etch | 32-bit | 64-bit
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
schnorrer
Titel: Sudden errors on boot...  BeitragVerfasst am: 05.06.2006, 14:04 Uhr



Anmeldung: 09. Jan 2006
Beiträge: 1720

you've got a wrong/defekt /lib/lsb/funktions.

The line you post dos exist in the korekt version line 85. So, there are 3 lines missing.

starting from line 73 here is what you should see.

if [ -f "$pidfile" ]; then
for i in `cat $pidfile`; do
if [ -z "$(echo $i | sed 's/[0-9]//g')" -a -d "/proc/$i" ]; then
pids="$i $pids"
fi
done
if [ -n "$pids" ]; then
echo "$pids"
return 0
else
return 2 # program is dead and /var/run pid file exists
fi
elif [ -x /bin/pidof ]; then
/bin/pidof -o %PPID $1
status="$?"
[ "$status" = 1 ] && return 3 # program is not running
return 0
else
return 4 # program or service is unknown
fi

hope I could help.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
shame
Titel:   BeitragVerfasst am: 05.06.2006, 23:07 Uhr



Anmeldung: 16. Apr 2006
Beiträge: 207
Wohnort: England
The lines from 73 onwards that you posted are completely different to my init-functions.
I tried replacing the lines and I got even more errors and could not boot at all.

_________________
sidux 32 & 64 | PCLinuxOS | PC-BSD
repository of shame - compiz fusion & beryl repo for debian Sid/Lenny/Etch | 32-bit | 64-bit
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
schnorrer
Titel:   BeitragVerfasst am: 06.06.2006, 08:14 Uhr



Anmeldung: 09. Jan 2006
Beiträge: 1720

I send you the whole script via pm and you vice versa.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
shame
Titel:   BeitragVerfasst am: 06.06.2006, 12:55 Uhr



Anmeldung: 16. Apr 2006
Beiträge: 207
Wohnort: England
I've just replaced my whole script with the one you PM'd me and rebooted.
The errors are now gone and splashy also works properly again so problem solved.
Thanks for that.

_________________
sidux 32 & 64 | PCLinuxOS | PC-BSD
repository of shame - compiz fusion & beryl repo for debian Sid/Lenny/Etch | 32-bit | 64-bit
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.