LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-14-2008, 01:48 AM   #1
shoaibahmedkhan
LQ Newbie
 
Registered: Aug 2008
Posts: 11

Rep: Reputation: 0
Running smsd in the background (automatically start it on system boot)


I have installed gnokii software and is working fine.
It have a database in mysql, where it create two tables for inbox and outbox.
Now if i want to receive sms or send sms, i have to run the following line in terminal and the daemon will run until you want and by ctrl+C exit from that line. But it will still run.

Code:
/usr/local/bin/ smsd --user dbUser --password abcPawd --host localhost  --module mysql
Now the case is if i close terminal it will be stopped and no more sms send and receive.
So how can i run this daemon when sytem at startup forever without terminal, Any ideas to do this.
 
Old 11-14-2008, 06:08 AM   #2
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
Put a NOHUP at the start of the command, that should do it.

Stu.
 
  


Reply

Tags
at, startup



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
system memory size shrinking even without running programs at background parv Linux - General 6 12-26-2007 03:07 PM
Don't start automatically at boot, just directly muusle Slackware 7 04-07-2006 08:56 AM
Login user automatically on system startup, and then start X locodude Linux - Security 1 02-26-2006 05:02 PM
Automatically start a game server when system boots Kahless Linux - Software 6 08-01-2004 01:23 AM
starting a background process running tcpdump on boot butthead Linux - Networking 1 10-15-2003 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:33 PM.

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