Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]rc problem: skripte zerschossen?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
frary
Guru
Guru


Joined: 27 Jan 2004
Posts: 545

PostPosted: Tue Aug 31, 2004 9:47 am    Post subject: [solved]rc problem: skripte zerschossen? Reply with quote

Hallo zusammen,

nachdem ich Monatelang alle Probleme mit meiner Installation durch mitlesen klären konnte, habe ich jetzt eines, das wohl kein anderer hat...

Code:
/sbin/rc: Line 95: ..: command not found


und

Code:
/var/lib/init.d/depcache : Line 95 ..: command not found


begleiten meinen Bootvorgang und die meisten emerges.

Bis gestern hatte ich den Fehler nicht, habe auch keine halsbrecherischen Experimente gemacht! Ich kann mir nur vorstellen, das die skripte bei einem etc-update verändert wurden...
Scheinbar hat es keine großen Auswirkungen, das system läuft ( sehrsehr ) gut, eben bis auf die gehäuften Fehlermeldungen.

Meine Daten: Gentoo 1.4 stage1 auf Athlon xp 2000+ 512MB ram

Die entsprechenden Zeilen lauten:

/var/lib/init.d/depcache Z88 - 102
Code:
 # Actual depend() function ...
  depend() {
     need checkroot hostname
     before bootmisc
     return 0
  }

  depend
)

#*** /etc/init.d/famd ***

myservice="/etc/init.d/famd"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"


/sbin/rc z91 - 102
Code:
   # Create problematic directories
   mkdir -p /dev/{pts,shm}

   # Same thing as /dev/.devfsd
   touch /dev/.udev

   return 0
}

get_critical_services() {
   local x=
   CRITICAL_SERVICES=


Was ist passiert?


Last edited by frary on Thu Sep 02, 2004 4:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2935
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Tue Aug 31, 2004 6:45 pm    Post subject: Reply with quote

Hast du das Problem zum ertsen Mal oder seit wann?
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
frary
Guru
Guru


Joined: 27 Jan 2004
Posts: 545

PostPosted: Tue Aug 31, 2004 10:30 pm    Post subject: Reply with quote

Ja, ich habe mich letzte woche an den Stage 1 gewagt, seitdem lief alles mit gentoo-dev-sources ..2.6.8-r1 ganz gut.
Ich habe nach und nach Flux box, kde, xine,yammi,usw emerged und nach Wunsch zum laufen gebracht.
Bevor der Fehler auftauchte habe ich mit:
Code:
emerge sync
emerge -vDu system
emerge -vDu world
etc-update

alles auf den neuesten Stand gebracht und versucht, apm, bzw acpi zum Stromsparen zu benutzen. Dabei muß etwas schief gegangen sein, obwohl ich weder apmd noch acpid einem runlevel zugeordnet hatte, und auch sonst nichts an besagten skripten verändert habe.

Hast du eine Idee?
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Tue Aug 31, 2004 10:50 pm    Post subject: Reply with quote

Schau Dir mal die Dateien in /etc/conf.d/ an, die Du geändert hast. Wahrscheinlich ist irgendwo ein Syntaxfehler drin. Findest Du keinen, versuch mal, baselayout neu zu emergen.
Back to top
View user's profile Send private message
Lensman
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2004
Posts: 137

PostPosted: Tue Aug 31, 2004 11:25 pm    Post subject: Re: rc problem: skripte zerschossen? Reply with quote

frary wrote:
Ich kann mir nur vorstellen, das die skripte bei einem etc-update verändert wurden...

Ein ähnliches Problem hatte ich auch mal nach einem etc-update. Auf einmal war das /etc/init.d/xdm Skript nicht mehr in der Lage, den GDM zu starten, obwohl das alles vorher problemlos lief und der GDM und X auch von der Konsole manuell ohne murren gestartet werden konnten. Den Fehler hab ich nie gefunden und habe so ziemlich alle Skripte durchgesucht, X.org neu gebaut etc. Kann also nicht mit Sicherheit sagen, ob das ggf. an dem Automerge von etc-update gelegen haben könnte. Nen Kollege hatte mich auch schon vorher mal diesbzgl. gewarnt, denn ihm ist nach dem automerge auch mal das System draufgegangen :evil:

Seitdem habe ich erstmal in der /etc/etc-update.conf das automerge ausgeschaltet und mache das lieber alles manuell mit meld. Würde ich an Deiner Stelle auch mal tun :)

Grüße,

Christian
Back to top
View user's profile Send private message
frary
Guru
Guru


Joined: 27 Jan 2004
Posts: 545

PostPosted: Tue Aug 31, 2004 11:46 pm    Post subject: Reply with quote

Das klingt mieß, obwohl ich mit dem Fehler vielleicht leben könnte...
Das etc-update habe ich übrigens von Hand gemacht und habe an sich nichts bekanntes überschrieben.
Eine Datei ( irgendwas in Richtung /etc/init.d ) kam mir komisch vor, hatte sie aber nie selbst geändert und habe das update gemacht.

Denkfehler?
Back to top
View user's profile Send private message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Wed Sep 01, 2004 12:02 am    Post subject: Reply with quote

ich hatte das problem letzlich auch (so am sonntag glaub ich) .. ich hatte mit den gentoo-dev-sources rumgespielt weil mir die ewige kernelpatcherei mit originalkerneln zu blöd geworden ist..

der 2.6.8-r1 hat mir dann eben solche fehler produziert, teilweise sind auch skripte in /etc/init.d/ verloren gegangen, das system war also ziemlich kaputt..

ich hab mir jetzt kurzerhand auf ner anderen platte ein neues gentoo gebacken (2004.2, is echt lecker :) ) und das über die alte(n) partition(en) drübergebügelt .. funzt 1a :)

alte fehler die ich im alten gentoo noch hatte tauchen jetzt nicht mehr auf, ich darf also nochmal von vorne kaputtkonfigurieren...

bissl was davon hab ich, ich werde einige sachen sicher nicht noch einmal machen ;)
ich benutze jetzt übrigens. wieder den original handgepatchten kernel 2.6.8.1 von kernel.org :)
_________________
AMD 2400+ XP | 1024 MB RAM | ATI Radeon 9600Pro
Gentoo Base System version 1.4.16 | Portage 2.0.51.19 | 2.6.11-gentoo-r9 Kernel
Back to top
View user's profile Send private message
frary
Guru
Guru


Joined: 27 Jan 2004
Posts: 545

PostPosted: Wed Sep 01, 2004 12:17 am    Post subject: Reply with quote

In /etc/conf.d kann ich nichts verdächtiges finden, außer:

Welche Namen sollten dort auftauchen und welche nicht?
Ich meine, stehen da nur Dinge, die ich emerged habe, oder gibt es dort auch überflüssige skripte?

baselayout hab ich neu kompiliert, der Fehler taucht beim starten und runterfahren immer noch auf.

Übrigens, falls meine postings schrott sind, bitte um Meldung:
Mir fällt grad auf, das sie ohne Zitate schwer zu verstehen sind...sorry!
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Wed Sep 01, 2004 8:43 am    Post subject: Reply with quote

Mach mal folgendes in einer shell (bash):
Code:

for file in /etc/conf.d/*
do
  source ${file}
done

Wenn das so durchläuft, sind keine Syntaxfehler in den dortigen Konfigurationsdateien. Falls es welche gibt, bekommst Du ne nette Fehlermeldung mit Dateiname und Zeilennummer.
Back to top
View user's profile Send private message
frary
Guru
Guru


Joined: 27 Jan 2004
Posts: 545

PostPosted: Wed Sep 01, 2004 10:54 am    Post subject: Reply with quote

Code:
bash-2.05b# for file in /etc/conf.d/*
> do
> source ${file}
> done
bash-2.05b#


Keine syntaxfehler, es sei denn in meiner Eingabe....

Wie sind denn meine chancen / Optionen?

Soll ich tatsächlich neu installieren? Is doch kein windows, oder?

Ist es möglich, das der Fehler durch einen anderen Kernel, ein system-update, etc behoben wird, oder muß ich die Nadel im Heuhaufen suchen?
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Wed Sep 01, 2004 1:51 pm    Post subject: Reply with quote

frary wrote:
Soll ich tatsächlich neu installieren? Is doch kein windows, oder?

Ne, Neuinstallation ist unnötig. Versuch noch mal
Code:
source /etc/rc.conf


Edit: Wegen [1] vielleicht auch noch
Code:
for file in /etc/init.d/*
do
  source ${file}
done


[1] https://forums.gentoo.org/viewtopic.php?t=217187&highlight=
Back to top
View user's profile Send private message
frary
Guru
Guru


Joined: 27 Jan 2004
Posts: 545

PostPosted: Thu Sep 02, 2004 2:07 pm    Post subject: Reply with quote

Code:
bash-2.05b# source /etc/rc.conf
bash: ..: command not found


Bevor jemand fragt, ich bin root ( su )...


Code:
bash-2.05b# for file in /etc/init.d/*
> do
> source ${file}
> done
 * Caching service dependencies...
/var/lib/init.d/depcache: line 95: ..: command not found
... ca 15 mal...
/var/lib/init.d/depcache: line 95: ..: command not found
bash-2.05b$


hat gestern noch ohne Fehlermeldung geklappt...
Back to top
View user's profile Send private message
frary
Guru
Guru


Joined: 27 Jan 2004
Posts: 545

PostPosted: Thu Sep 02, 2004 2:18 pm    Post subject: Reply with quote

Code:
bash-2.05b# for file in /etc/conf.d/*
> do
> source ${file}
> done
bash-2.05b#


Naja, geht doch, aber su scheint manchmal nicht zu funktionieren...
Mein Benutzer ist in der Gruppe Wheel und auch su hat bisher funktioniert...
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Sep 02, 2004 3:31 pm    Post subject: Reply with quote

Schick mal bitte die /etc/rc.conf im Original, mit Kommentaren etc.
Back to top
View user's profile Send private message
frary
Guru
Guru


Joined: 27 Jan 2004
Posts: 545

PostPosted: Thu Sep 02, 2004 3:38 pm    Post subject: Reply with quote

Code:
# /etc/rc.conf: Global startup script configuration settings
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/rc.conf,v 1.22 2003/10/21 06:09:42 vapier Exp $

# Use KEYMAP to specify the default console keymap.  There is a complete tree
# of keymaps in /usr/share/keymaps to choose from.  This setting is used by the
# /etc/init.d/keymaps script.

KEYMAP="de" # -latin1

# Should we first load the 'windowkeys' console keymap?  Most x86 users will
# say "yes" here.  Note that non-x86 users should leave it as "no".

SET_WINDOWKEYS="yes"

# The maps to load for extended keyboards.  Most users will leave this as is.

EXTENDED_KEYMAPS="windowkeys" # NEU
#EXTENDED_KEYMAPS="backspace keypad"

# CONSOLEFONT specifies the default font that you'd like Linux to use on the
# console.  You can find a good selection of fonts in /usr/share/consolefonts;
# you shouldn't specify the trailing ".psf.gz", just the font name below.
# To use the default console font, comment out the CONSOLEFONT setting below.
# This setting is used by the /etc/init.d/consolefont script (NOTE: if you do
# not want to use it, run "rc-update del consolefont" as root).

CONSOLEFONT="default8x16"

# CONSOLETRANSALTION is the charset map file to use.  Leave commented to use
# the default one.  Have a look in /usr/share/consoletrans for a selection of
# map files you can use.

#CONSOLETRANSLATION="8859-1_to_uni"

# Set CLOCK to "UTC" if your system clock is set to UTC (also known as
# Greenwich Mean Time).  If your clock is set to the local time, then set CLOCK
# to "local".  This setting is used by the /etc/init.d/clock script.

CLOCK="CET"

# Set EDITOR to your preferred editor.

EDITOR="/bin/nano"
#EDITOR="/usr/bin/vim"
#EDITOR="/usr/bin/emacs"

# Set PROTOCOLS to the protocols that you plan to use.  Gentoo Linux will only
# enable module auto-loading for these protocols, eliminating annoying module
# not found errors.
#
# NOTE: Do NOT uncomment the next lines, but add them to 'PROTOCOLS=...' line!!
#
# Num   Protocol
# 1:    Unix
# 2:    IPv4
# 3:    Amateur Radio AX.25
# 4:    IPX
# 5:    DDP / appletalk
# 6:    Amateur Radio NET/ROM
# 9:    X.25
# 10:   IPv6
# 11:   ROSE / Amateur Radio X.25 PLP
# 19:   Acorn Econet

# Most users want this:
PROTOCOLS="1 2"

#For IPv6 support:
#PROTOCOLS="1 2 10"

# What display manager do you use ?  [ xdm | gdm | kdm | entrance ]
DISPLAYMANAGER="kdm"

# XSESSION is a new variable to control what window manager to start
# default with X if run with xdm, startx or xinit.  The default behavior
# is to look in /etc/X11/Sessions/ and run the script in matching the
# value that XSESSION is set to.  The support scripts is smart enouth to
# look in all bin directories if it cant find a match in /etc/X11/Sessions/,
# so setting it to "enligtenment" can also work.  This is basically used
# as a way for the system admin to configure a default system wide WM,
# allthough it will work if the user export XSESSION in his .bash_profile, etc.
#
# NOTE:  1) this behaviour is overridden when a ~/.xinitrc exists, and startx
#           is called.
#        2) even if a ~/.xsession exist, if XSESSION can be resolved, it will
#           be executed rather than ~/.xsession, else KDM breaks ...
#
# Defaults depending on what you install currently include:
#
# Gnome - will start gnome-session
# kde-<version> - will start startkde (ex: kde-3.0.2)
# Xsession - will start a terminal and a few other nice apps

XSESSION="kde-3.2.3"
..


Änderungen, die ich kürzlich gemacht habe, stehen noch als kommentar hinter der geänderten Zeile...
Back to top
View user's profile Send private message
Lensman
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2004
Posts: 137

PostPosted: Thu Sep 02, 2004 3:55 pm    Post subject: Reply with quote

okay, die letzte Zeile ist ja schon das Übel. Mach da mal die beiden Punkte weg und dann sollte das wieder klappen :D
Back to top
View user's profile Send private message
frary
Guru
Guru


Joined: 27 Jan 2004
Posts: 545

PostPosted: Thu Sep 02, 2004 4:04 pm    Post subject: Reply with quote

1000 dank, das wars. Gentoo startet wieder ohne Fehler...

Hoffe, eines fernen Tages kann ich solche und andere Fehler selbst beheben!
Wie lange kann das dauern?

Gruß an alle

T
Back to top
View user's profile Send private message
Lensman
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2004
Posts: 137

PostPosted: Thu Sep 02, 2004 4:23 pm    Post subject: Reply with quote

frary wrote:
Hoffe, eines fernen Tages kann ich solche und andere Fehler selbst beheben!
Wie lange kann das dauern?

Naja, solche offensichtlichen Fehler wirst du jetzt wohl nicht mehr machen :D Und es wird immer Fehler oder Fragen geben, die man alleine nicht korrigiert bzw. beantwortet bekommt und dann das nette Forum hier in Anspruch nimmt.

Also Kopf hoch! :wink:
Back to top
View user's profile Send private message
Lensman
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2004
Posts: 137

PostPosted: Thu Sep 02, 2004 4:27 pm    Post subject: Reply with quote

Achja, ändere doch bitte mal den Titel des Threads in "[SOLVED] rc problem: skripte zerschossen?" :)
Back to top
View user's profile Send private message
frary
Guru
Guru


Joined: 27 Jan 2004
Posts: 545

PostPosted: Thu Sep 02, 2004 4:31 pm    Post subject: Reply with quote

Ich beiß mich durch, bis jetzt hat es gut geklappt, aber ich bin eher ein howto-leser als ein Linux-Crack...

...aber zum Glück gibt es ein nettes Forum, wo ich ohne beschimpft zu werden nach 2 Punkten ( .. ) fanden kann!
Back to top
View user's profile Send private message
Lensman
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2004
Posts: 137

PostPosted: Thu Sep 02, 2004 5:02 pm    Post subject: Reply with quote

frary wrote:
...ich bin eher ein howto-leser als ein Linux-Crack...

Naja, das ist doch normal, sich erstmal mit Howtos nen Einblick zu verschaffen und dann nach und nach die Dinge zu lernen, oder? Als Linux Crack würde ich mich auch nicht gerade bezeichnen und außerdem, man kann eh nicht von allem bis ins kleinste Detail Ahnung haben. Dafür sind die ganzen Themengebiete einfach viel zu komplex und umfangreich (Beispiel Sicherheit im Netz).
Ich denke wichtig ist halt nur, dass man sich erstmal selbst hinsetzt und nachforscht und wenn man dann absolut nicht weiter weiß und nix gefunden hat, mal hier anfragt. Anderweitige Beispiele findest du hier zuhauf und die Leute wundern sich oft, das sie dann angemault werden :twisted:
Back to top
View user's profile Send private message
frary
Guru
Guru


Joined: 27 Jan 2004
Posts: 545

PostPosted: Fri Sep 03, 2004 9:22 am    Post subject: Reply with quote

Quote:
Anderweitige Beispiele findest du hier zuhauf und die Leute wundern sich oft, das sie dann angemault werden


Aber selbst dann seid ihr echt freundlich... ich habe vor einiger Zeit in Foren zum Thema Sicherheit mitgelesen, da wurden Leute schon beinahe wegen Rechtschreibung ins Killfile gepackt, ganz zu schweigen vom echt unfreundlichen Umgangston. Dort hätte ich mich im Leben nicht getraut, eine Frage zu stellen!
Vermutlich kann man sich deswegen in besagtem Forum nur noch über Brustvergrößerungen informieren.....
Back to top
View user's profile Send private message
Gekko
l33t
l33t


Joined: 29 Oct 2002
Posts: 773

PostPosted: Fri Sep 03, 2004 11:40 am    Post subject: Reply with quote

frary wrote:
...ich bin eher ein howto-leser als ein Linux-Crack...

Ich denk dann gibt es sehr wenige Linux Cracks :lol:
Weil Linux ist ja eigentlich nur der Betriebssystemkern und paar notwendige Teile, damit das Wergl auch rennt.
Der Rest ist einfach nur Software und nicht Linux :wink:

Also wuerd ichs mal so sagen: ein Linux-Crack ist einer der sich z.B. einen eigenen Geraetetreiber schreiben koennte :lol:
Back to top
View user's profile Send private message
Xk2c
Apprentice
Apprentice


Joined: 17 Jul 2004
Posts: 240

PostPosted: Tue Sep 07, 2004 12:30 pm    Post subject: Reply with quote

Stichwort "Cracker" / "Hacker"

http://koeln.ccc.de/prozesse/writing/artikel/hacker-werden.html

http://koeln.ccc.de/prozesse/writing/artikel/hacker-howto-esr.html
_________________
useful Xterm, Aterm and RXVT-Unicode features
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Tue Sep 07, 2004 7:03 pm    Post subject: Reply with quote

Ich glaube mit "Crack" war hier eh nicht Cracker gemeint. 8)
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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