Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-21-2006, 10:38 PM   #1
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
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,466

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

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:04 AM.

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