LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-21-2006, 10:38 PM   #1
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Rep: Reputation: 30
restart teamspeak server if when it crashes


im going to be hosting a teamspeak server. i want to make it so itll be like how other people host their servers when it crashes itll automatically start back up.

i guess (or hope) this is a task i could apply to other servers. bassicaly i need a way to say

if blah blah blah server crashes then run script located at x location on the server. (the script im referring to is a smal lscript i wrote to start the server)

unless theres a way to monitor the process and automaticaly restart it witohut having to know the proper way to start it

Last edited by MrSako; 08-21-2006 at 10:39 PM.
 
Old 08-22-2006, 04:00 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
The usual way to do it is to make an endless loop with the server start up command in the middle:

Code:
while [ true ]
do
    <command to start server>
done
put that in a bash script and use it to start server
 
  


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
Slackware crashes when log-off or restart under X Basel Slackware 19 10-03-2005 08:04 PM
gdm crashes but ok after restart ArchNGEL Linux - Software 6 07-31-2005 02:48 PM
Teamspeak server latest vs. Lleb_KCir Linux - Software 2 01-13-2005 08:49 PM
Mysql crashes after restart ... :( sys7em Slackware 1 11-24-2004 03:33 PM
How can I autostart a (teamspeak) server! eugeny Linux - Software 0 02-11-2004 01:41 PM

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

All times are GMT -5. The time now is 12:09 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