LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Running smsd in the background (automatically start it on system boot) (https://www.linuxquestions.org/questions/red-hat-31/running-smsd-in-the-background-automatically-start-it-on-system-boot-683312/)

shoaibahmedkhan 11-14-2008 01:48 AM

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.

stuart_cherrington 11-14-2008 06:08 AM

Put a NOHUP at the start of the command, that should do it.

Stu.


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