offtopic: startup item / daemon / chron
Hi there, This is a newb question. I've found it hard to phrase appropriate queries about it for web / usenet searches and hope someone can set me straight. I want to create an action on bootup that starts our site search engine. They tell you how to get it running as a daemon from the shell and I am stuck on how to get this to happen everytime the machine boots. I've tried the bootup and chron sections of webmin but my syntax doesn't work. The search engine needs to be invoked from a specific directory so the command structure would be like this: change directory to xyz ./command and parameters any advice appreciated joel
Hi !
This is a newb question. I've found it hard to phrase appropriate queries about it for web / usenet searches and hope someone can set me straight.
I want to create an action on bootup that starts our site search engine. They tell you how to get it running as a daemon from the shell and I am stuck on how to get this to happen everytime the machine boots.
--> If the daemon does not need anything else to be up (like network), you can put the commands into /etc/init.d/boot.local If it needs the network or any other services, you have to create a script in /etc/init.d Take /etc/init.d/sshd as example and create your own script "mystart.local" (you can choose whatever name you like). The commands for starting need to be in the "start" branch of the case-statement. Run "insserv mystart.local" as root to include it in the start-up order. Commands to stop the daemon can be put into "halt.local" or into the "stop" branch of the case-statement in "mystart.local". HTH, Armin -- Am Hasenberg 26 office: Institut für Atmosphärenphysik D-18209 Bad Doberan Schloss-Straße 6 Tel. ++49-(0)38203/42137 D-18225 Kühlungsborn / GERMANY Email: schoech@iap-kborn.de Tel. +49-(0)38293-68-102 WWW: http://armins.cjb.net/ Fax. +49-(0)38293-68-50
Hi,
I want to create an action on bootup that starts our site search engine. They tell you how to get it running as a daemon from the shell and I am stuck on how to get this to happen everytime the machine boots.
If it needs the network or any other services, you have to create a script in /etc/init.d Take /etc/init.d/sshd as example and create your own script
You should copy /etc/init.d/skeleton to /etc/init.d/<yourservice> and modify that template script accordingly. If you set the dependencies right, you can even use the runlevel editor from yast to set up the boot links correctly. hth Jörn -- ------------------------------------------------------------ Jörn Ott Telefon: (0 22 24) 94 08 - 73 EDV Service & Beratung Telefax: (0 22 24) 94 08 -74 Lohfelder Str. 33 E-Mail: mailto:white@ott-service.de 53604 Bad Honnef WWW: http://www.ott-service.de/
participants (3)
-
Armin Schoech
-
J Fischer - UIA
-
Jörn Ott