Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: azche24 on May 16, 2005, 11:11:39 AM
-
Hi folks,
i need some help with an init-script, that should be added to the startup-procedure at boot time. The name of the script is tksuite.ctl and it starts an extra-application on the server at boot-time (PBX-Manager). The script should (according to the man-file) be placed in /etc/rc.d/init.d and is called by
tksuitectl start
What i did was place a custom-template named S10tksuitectl (that calls the /etc/rd.d/init.d/tkstuitectl start) into /etc/e-smith/templates-custom/etc/rd.d/rc7.d and do a expand-template. Did not work.
Every time my server is rebooted, i have to start that script manually - ugly. How this is done?
-
OK, folks,
i just LOVE to answer my own questions. Here is the answer as from http://forums.contribs.org/index.php?topic=27164.msg111638#msg111638:
1. Put the SCRIPT itself into /etc/rc.d/init.d/
2. Goto server console as root and
3. Do /sbin/e-smith/config set SCRIPT service Initscriptorder 92 status enabled
4. Do ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S92SCRIPT
Reboot and feel happy :-)
It works. Replace SCRIPT with name of your script of course...
I shure love e-smith...
-
I have better success starting custom software at startup by placing them in /etc/rc.local. Same syntax as you did in init.d, but be sure to use a full path to the application start file.
Larry
-
Hi,
I have better success starting custom software at startup by placing them in /etc/rc.local.
Larry
Why better?
Where to put?
/etc/rc.local is a shellscript itself, isn't it?
I can not place it anywhere else because this particular script is part of a shell-based installation, that puts the necessary scripts into the directories itself and links them.