Hallo, Daniel Kaemtner wrote: > Hallo ich möchte gerne meine snipSnap.jar Datei zu jedem boot > automatisch ausführen lassen. > > 1. Loesung: Ich habe von der inittab gelesen und die mir auch angesehen. > Scheint nicht das richtige zu sein. stimmt. > 2. Loesung: Ich schreibe mir ein skript: erstellen und mit Inhalt > gefüllt kopiere ich es nach /etc/init.d/ > > # touch snipsnap.sh > # chown root.root snipsnap.sh > # chmod 755 snipsnap.sh > # pico snipsnap.sh > > > Inhalt: #!/bin/sh > java -jar /pfad/zu/meiner/jar/Datei/snipsnap.jar > > > # cp snipsnap.sh /etc/init.d/ > # update-rc.d snipsnap.sh start 60 S . Runlevel S ist, wenn ich mich richtig erinnere, der Single User Mode. Normalerweise bootest du aber in den Runlevel 2. > /etc/rcS.d/S60snipsnap.sh -> ../init.d/snipsnap.sh > > Ist das so richtig ? Ich würde 2 statt S hinschreiben. Grüße, Moritz -- Moritz Lenz http://moritz.faui2k3.org/ http://sudokugarden.de/
Attachment:
signature.asc
Description: OpenPGP digital signature