Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
jedes RC-Script soll ein externes Programm starten....
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Hilefoks
l33t
l33t


Joined: 29 Jan 2003
Posts: 849
Location: Emden / Deutschland

PostPosted: Thu Mar 24, 2005 11:22 am    Post subject: jedes RC-Script soll ein externes Programm starten.... Reply with quote

Dummer Titel - aber ich habe folgendes vor:

Ich habe mir ein LCD mit Lampen und Co. gebaut. Auch habe ich ein kleines Programm geschrieben um dieses Anzusteuern. Jetzt möchte ich gerne das jedes RC-Script beim beim start|stop dieses Programm ausführt. Ausserdem muss ich den Namen des Dienstes haben. Schön wäre auch den Status zu erfahren und ob der Dienst erfolgreich starten konnte.
Also im Prinzip alles das was beim booten auch angezeigt wird.

Gibt es nun eine möglichkeit irgendwo zentral mein Programm einzubinden?

Mfg Hilefoks
Back to top
View user's profile Send private message
Dirk_G
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2003
Posts: 144
Location: Wallerfangen

PostPosted: Thu Mar 24, 2005 11:55 am    Post subject: Reply with quote

Hi

Ich denke schon dass das geht. Ich würde mal in /sbin/rc nachsehen. Bin mir zwar nicht sicher, aber das Script ruft glaube ich alle Init-Scripte auf.


Dirk
Back to top
View user's profile Send private message
Hilefoks
l33t
l33t


Joined: 29 Jan 2003
Posts: 849
Location: Emden / Deutschland

PostPosted: Thu Mar 24, 2005 12:36 pm    Post subject: Reply with quote

Ja, an /sbin/rc hatte ich auch schon gedacht.
Aber ist das wirklich "sauber" mein Programm von dort aus aufzurufen. Und bekomme ich alle Informationen die ich benötige - und an welcher Stelle?

Mfg Hilefoks
Back to top
View user's profile Send private message
dna42
n00b
n00b


Joined: 26 Feb 2003
Posts: 72

PostPosted: Thu Mar 24, 2005 2:44 pm    Post subject: Re: jedes RC-Script soll ein externes Programm starten.... Reply with quote

wie wär's mit /sbin/functions.sh
einfach in ebegin/eend dein programm aufrufen
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
Page 1 of 1

 
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