LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to make my application start during system boot (https://www.linuxquestions.org/questions/linux-software-2/how-to-make-my-application-start-during-system-boot-743044/)

rajesh84210 07-27-2009 04:57 AM

how to make my application start during system boot
 
Dear All,
I have installed "kamailio", in my linux machine.. it runs on port number 5060. when i restart my linux machine, the installed application doesnt start automatically.. All I would like to know is how do i configure my FC-6, so that my application starts automatically.

Thanks

zQUEz 07-27-2009 04:59 AM

You can add a line to /etc/rc.local. That scripts runs any commands you put in there when the system boots.

This doco. appears to be geared toward Fedora 9 which will not be very different to F5 that you are using. http://www.sureteq.com/asterisk/kama..._to_finish.htm

rajesh84210 07-27-2009 05:19 AM

Hi,
Thanks for the prompt reply.But this is not the answer iam lookin for. The link contains A-Z of kamailio.But i would like to know how to add kamailio to the start up (just like you mentioned to edit the /etc/rc.local file.)kindly brief the process to me.Thanks

zQUEz 07-27-2009 05:40 AM

No, the link contains exact step by step instructions that someone carefully documented on their experiences installing the application on a Fedora system. If you took the time to read it, you would have seen 6.3 shows how to start the application.
In this case, the author said to start Kamailio you type `kamctl start`.
So, edit /etc/rc.local, and type at the end of the script `kamctl start`
Save and close.

What I might suggest also, is to put the full path as well, such as `/sbin/kamctl start` (or whatever the full path to kamctl is - you can work this out with command `which kamctl`.

rajesh84210 07-27-2009 06:26 AM

i would like to verify if this is the coprrect syntax for the same .
/usr/local/sbin ./kamctl start (though i need to make some alterations, i can manage)

repo 07-27-2009 06:33 AM

Quote:

/usr/local/sbin ./kamctl start
Code:

/usr/local/sbin/kamctl start
The ./ is used when you are in the directory where the file is located, if the directory is not in your PATH


All times are GMT -5. The time now is 01:51 PM.