Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: azche24 on May 16, 2005, 11:11:39 AM

Title: Template for Init-Script in /etc/init.d ?
Post 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?
Title: Template for Init-Script in /etc/init.d ?
Post by: azche24 on May 16, 2005, 12:03:09 PM
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:


Reboot and feel happy  :-)

It works. Replace SCRIPT with name of your script of course...

I shure love e-smith...
Title: Template for Init-Script in /etc/init.d ?
Post by: gardnc on May 16, 2005, 12:05:57 PM
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
Title: Template for Init-Script in /etc/init.d ?
Post by: azche24 on May 17, 2005, 11:27:47 AM
Hi,
Quote from: "gardnc"
I have better success starting custom software at startup by placing them in /etc/rc.local.  
Larry


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.