Antw: Re: Automatischer Start!
Ich habe ein Softwarepaket installiert, das aus Sicherheitsgründen einen eigenen User erfordert, unter dem das Programm abläuft. Ich habe ihn 'his' genannt und ihm als Standard-Shell die tcsh zugeordnet, die das Programm verlangt. Das ganze wird über ein Script 'hwstart' gestartet, wobei das ganze in der csh (bzw. tsch) läuft. Ich wechsle also mittels: su - his und starte dann mittels hwstart
Zum Booten in RunLevel 5 haben ich versucht einen Link auf hwstart zu legen und diesen link als S20hwstart in /etc/rc.d/rc5.d erstellt.
Trotzdem funktioniert's nicht.
Was funktioniert nicht? Dir ist klar, daß dem Prozeß kein Bildschirm zugeordnet ist. Eine nicht umgelenkte Ausgabe geht ins Nirvana. ist eine Art Web-Server (genauer gesagt Hyperwave-Server), sollte also kein Problem sein, (oder?)
Du hast auch daran gedacht, daß der Pfad rudimentär ist? Auf mehr als /bin und /usr/bin würde ich mich nicht verlassen. Vielleicht noch nicht einmal dieses. Was kan ich dagegen tun?
Dann habe ich ein Script erstellt, das folgende Zeile enthält: su - his /opt/his/bin/hwstart und den link S20hwstart dorhin gelegt.
Klappt auch nicht.
Was ist da die Ursache?
Es wird dann mit hwstart start aufgerufen. ok! ist natürlich nicht ok, da ich nur hwstart (ohne Parameter) aufrufen will
Ich habe gehofft, dass dann der richtige User das Programm startet.
Um das sagen zu können müßte man mehr über Dein Skript wissen. Kurz gesagt tippe ich nach dem Booten folgendes: su - his cd /opt/his/bin/scripts/hwstart
Und obiges sollte beim Booten automatisch geschehen. hwstart kontrolliert, ob der Hyperwave-Server gestartet ist. Falls nein, startet er ihn. hwstop (im selben Verzeichnis) sollte beim runterfahren ausgeführt werden. Ich hoffe, dass dir das genügt. Grüße Kaspar
participants (1)
-
SchweigerK