LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2004, 05:28 AM   #1
blablaman
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Restart script


Hi, I'm a bit of a Linux Noob.

I want to be able to restart a linux application automaticaly twice or three times aday without me logging in to do it manually.
This is a voice server that loses sound after a few hours being up, however a restart does the trick & it works for a few more hours.
Since its an older version of ventrilo & no longer supported by the developer.
Im not always around to do it so my clan can be with out voice server for hours untill I get back.

Im wondering if this is possable & if some script guru could give me pointers if it is possable.
 
Old 08-20-2004, 06:09 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
you can use cron to do the start/stop.

#crontab -e

* */3 * * * /path/to/the/script_that_will_stop_and_start_your_software

cron will run this script every 3 hours.
 
  


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
MySQL restart script? Fuwex Debian 2 08-17-2005 02:23 PM
run script when restart ust Linux - Software 4 08-25-2004 03:13 PM
Script to restart natd and watch it rspurlock Programming 0 03-31-2004 09:18 AM
bash script for network restart munkeh Programming 8 11-10-2003 05:00 PM
I wants to run the script(xx) while restart the system. help pls... fmohideen76 Linux - General 2 07-11-2002 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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