View previous topic :: View next topic |
Author |
Message |
twam Apprentice
Joined: 15 Feb 2005 Posts: 189 Location: Ammerbuch, Germany
|
Posted: Fri Apr 08, 2005 12:59 pm Post subject: Programm als Daemon starten |
|
|
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 |
|
|
a_n_d_i Tux's lil' helper
Joined: 03 Mar 2005 Posts: 88 Location: Muelheim an der Ruhr
|
Posted: Fri Apr 08, 2005 1:01 pm Post subject: |
|
|
Hi,
mit nohup kannst Du das machen. |
|
Back to top |
|
|
abcd n00b
Joined: 27 Oct 2004 Posts: 32
|
Posted: Fri Apr 08, 2005 1:02 pm Post subject: |
|
|
In der shell
eingeben. |
|
Back to top |
|
|
twam Apprentice
Joined: 15 Feb 2005 Posts: 189 Location: Ammerbuch, Germany
|
Posted: Fri Apr 08, 2005 1:04 pm Post subject: |
|
|
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 |
|
|
ignatz Tux's lil' helper
Joined: 04 Aug 2003 Posts: 112 Location: Germany/BaWü
|
|
Back to top |
|
|
twam Apprentice
Joined: 15 Feb 2005 Posts: 189 Location: Ammerbuch, Germany
|
Posted: Fri Apr 08, 2005 1:24 pm Post subject: |
|
|
Danke für den Link! Ich werde es mal damit versuchen. |
|
Back to top |
|
|
calvin-gr Tux's lil' helper
Joined: 25 Sep 2004 Posts: 94 Location: Germany
|
|
Back to top |
|
|
_hephaistos_ Advocate
Joined: 07 Apr 2004 Posts: 2694 Location: salzburg, austria
|
Posted: Sat Apr 09, 2005 2:21 pm Post subject: |
|
|
abcd wrote: | In der shell
eingeben. |
das macht aber keinen daemon aus deinem prog... |
|
Back to top |
|
|
twam Apprentice
Joined: 15 Feb 2005 Posts: 189 Location: Ammerbuch, Germany
|
Posted: Sat Apr 09, 2005 2:34 pm Post subject: |
|
|
Auf jedenfall dann, wenn ich das Programm nochmal richtig anpacken muss weil ich ncoh ein paar Features einbauen möchte. |
|
Back to top |
|
|
|