Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
programm beim booten 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
Marc-Tell
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2004
Posts: 101
Location: Hamburg

PostPosted: Thu Apr 08, 2004 3:13 pm    Post subject: programm beim booten starten Reply with quote

Hallo,

Ich möchte den http-tunnel-server hts beim Systemstart automatisch auch starten.
Die Eintragung in /etc/profile scheint nicht zu funktionieren, da vor/nach einem login kein hts-Prozess gestartet ist.

wo muss ich denn nun hts eintragen, damit er auch gestartet wird.

MfG
Marc-Tell
Back to top
View user's profile Send private message
golloza
Guru
Guru


Joined: 14 Mar 2004
Posts: 427

PostPosted: Thu Apr 08, 2004 3:15 pm    Post subject: Reply with quote

wenn er ein init script mitbringt:

rc-update add hts default

les dir mal das hier:
http://www.gentoo.org/doc/de/handbook/handbook.xml?part=2&chap=5
durch :)
Back to top
View user's profile Send private message
Marc-Tell
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2004
Posts: 101
Location: Hamburg

PostPosted: Thu Apr 08, 2004 4:11 pm    Post subject: Reply with quote

leider ist da kein init-script dabei :-/
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Thu Apr 08, 2004 4:14 pm    Post subject: Reply with quote

Marc-Tell wrote:
leider ist da kein init-script dabei :-/

Dann musst du wohl selber eins schreiben [1] Ist eigentlich ganz einfach wenn man nur ein Programm starten will

[1] http://www.gentoo.org/doc/de/handbook/handbook.xml?part=2&chap=5#doc_chap4
Back to top
View user's profile Send private message
schmutzfinger
Veteran
Veteran


Joined: 26 Oct 2003
Posts: 1287
Location: Dresden/Germany

PostPosted: Thu Apr 08, 2004 4:22 pm    Post subject: Reply with quote

ohne init script kann man einfache befehle auch einfach in den dienst local mit einbauen.
dazu einfach bash code in
Code:
/etc/conf.d/local.start
einfügen.
und dann noch local ins runlevel default aufnehemen, falls er nicht eh schon drinne ist.
wobei ich für einen dienst auf jeden fall ein init script bevorzugen würde.
aber z.B linuxlogo oder solche sachen kann man da gut einfügen
ein eintrag in /etc/profile ist extrem unsauber, weil der nur dann gestartet wird, wenn sich auch jemand an der kiste anmeldet.[/code]
Back to top
View user's profile Send private message
Marc-Tell
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2004
Posts: 101
Location: Hamburg

PostPosted: Fri Apr 09, 2004 8:27 am    Post subject: Reply with quote

schmutzfinger wrote:
ohne init script kann man einfache befehle auch einfach in den dienst local mit einbauen.
dazu einfach bash code in
Code:
/etc/conf.d/local.start
einfügen.
und dann noch local ins runlevel default aufnehemen, falls er nicht eh schon drinne ist.

werde das mal versuchen, da der Dienst bei meinem init-script nicht startet (ohne Fehlermeldung)

schmutzfinger wrote:
wobei ich für einen dienst auf jeden fall ein init script bevorzugen würde.
aber z.B linuxlogo oder solche sachen kann man da gut einfügen
ein eintrag in /etc/profile ist extrem unsauber, weil der nur dann gestartet wird, wenn sich auch jemand an der kiste anmeldet.[/code]


ah das würde erklären, warum der dienst nicht gestartet wurde. Es hat sich nämlich niemand eingeloggt :-)
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