Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Programm als Daemon 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
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Fri Apr 08, 2005 12:59 pm    Post subject: Programm als Daemon starten Reply with quote

Hallo

ich hab ein kleines Tool welches mir Daten von der seriellen Schnittstelle liest und diese in eine SQL Datenbank einträgt. Nun würde ich diese gerne als Daemon im Hintergrund starten. Wie mache ich das am besten?

Grüße
Back to top
View user's profile Send private message
a_n_d_i
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2005
Posts: 88
Location: Muelheim an der Ruhr

PostPosted: Fri Apr 08, 2005 1:01 pm    Post subject: Reply with quote

Hi,

mit nohup kannst Du das machen.
Back to top
View user's profile Send private message
abcd
n00b
n00b


Joined: 27 Oct 2004
Posts: 32

PostPosted: Fri Apr 08, 2005 1:02 pm    Post subject: Reply with quote

In der shell
Code:

programmname &

eingeben.
Back to top
View user's profile Send private message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Fri Apr 08, 2005 1:04 pm    Post subject: Reply with quote

Das mit & ist mir auch schon bekannt, aber ich will es am besten beim booten schon starten. Und die Startscripts in /etc/init.d verwenden immer start-stop-daemon und ich weiss nicht ob ich das einfach so bei nem normalen Programm benutzen kann.
Back to top
View user's profile Send private message
ignatz
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2003
Posts: 112
Location: Germany/BaWü

PostPosted: Fri Apr 08, 2005 1:21 pm    Post subject: Reply with quote

Gibt sogar ne deutsche Anleitung für Initscripte auf der Seite von Gentoo:
http://www.gentoo.de/doc/de/handbook/handbook-x86.xml?part=2&chap=4#doc_chap4
_________________
Feel the unbeliveable power of the new Bistr-O-Matic: <su -c "emerge -CD `qpkg -I -nc`">
Back to top
View user's profile Send private message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Fri Apr 08, 2005 1:24 pm    Post subject: Reply with quote

Danke für den Link! Ich werde es mal damit versuchen.
Back to top
View user's profile Send private message
calvin-gr
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2004
Posts: 94
Location: Germany

PostPosted: Sat Apr 09, 2005 1:55 pm    Post subject: Reply with quote

vielleicht könnte dies hilfreich sein:
http://www.c-plusplus.de/forum/viewtopic.php?t=39501
_________________
Apfelmus schmeckt gut!
Back to top
View user's profile Send private message
_hephaistos_
Advocate
Advocate


Joined: 07 Apr 2004
Posts: 2694
Location: salzburg, austria

PostPosted: Sat Apr 09, 2005 2:21 pm    Post subject: Reply with quote

abcd wrote:
In der shell
Code:

programmname &

eingeben.

das macht aber keinen daemon aus deinem prog...
Back to top
View user's profile Send private message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Sat Apr 09, 2005 2:34 pm    Post subject: Reply with quote

calvin-gr wrote:
vielleicht könnte dies hilfreich sein:
http://www.c-plusplus.de/forum/viewtopic.php?t=39501


Auf jedenfall dann, wenn ich das Programm nochmal richtig anpacken muss weil ich ncoh ein paar Features einbauen möchte.
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