LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-27-2009, 04:57 AM   #1
rajesh84210
Member
 
Registered: Jul 2009
Posts: 53

Rep: Reputation: 15
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
 
Old 07-27-2009, 04:59 AM   #2
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
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

Last edited by zQUEz; 07-27-2009 at 05:04 AM.
 
Old 07-27-2009, 05:19 AM   #3
rajesh84210
Member
 
Registered: Jul 2009
Posts: 53

Original Poster
Rep: Reputation: 15
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
 
Old 07-27-2009, 05:40 AM   #4
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
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`.
 
Old 07-27-2009, 06:26 AM   #5
rajesh84210
Member
 
Registered: Jul 2009
Posts: 53

Original Poster
Rep: Reputation: 15
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)
 
Old 07-27-2009, 06:33 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me ... Install packet application start with reboot system ! minhstone Red Hat 2 01-18-2008 01:34 AM
start application/script at boot time aarontoth Linux - Enterprise 3 01-17-2007 01:57 PM
how to make a dual-boot system on a linux system RoyalGala Linux - Newbie 6 03-03-2006 02:36 PM
Application that start at boot time Panagiotis_IOA Slackware 5 02-14-2006 02:42 PM
Adding an application to auto-start on boot-time dushkinup Linux - Newbie 4 03-07-2004 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration