Reset services automatically [Help needed]

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
seph
Posts: 6
Joined: 2008/10/05 18:17:08
Contact:

Reset services automatically [Help needed]

Post by seph » 2008/10/05 18:23:45

Hello,
I would like to ask You some question.
I heard that it's possible, but I don't really know how to do that. I would need a guide how to write and install some script, which would allow me to reset one service automatically every 12 hours.

I really would need that guide, so please help me.

Regards
Seph


Edit: I'm using CentOS 4.6

yyagol
Posts: 1015
Joined: 2006/06/10 18:27:44
Location: 32 4′N 34 47′E
Contact:

Reset services automatically [Help needed]

Post by yyagol » 2008/10/06 06:12:27

use crontab for that , edit with [b]crontab -e[/b]
example

[code]01 */12 * * * service service_name restart [/code]

Post Reply

Return to “CentOS 4 - Server Support”