Web Hosting Talk







View Full Version : Cron Deamon


funprojects
11-03-2002, 02:59 PM
Hi i have a RaQ4r and i have had the following mail 200 times?

From root (Cron Daemon)
To root
Date Thu, 31 Oct 2002 06:00:00 +0100
Subject Cron <root@ns1> /sbin/service ipchains restart >/dev/null


/bin/sh: /sbin/service: No such file or directory


Anybody knows how to fix this and what it mean exactly,

Thanks for your help

BruceT
12-05-2002, 12:12 AM
You've got a cron job that's trying to run /sbin/service (part of the djb tcpserver tools I think), but it doesn't exist. You're getting mail since the command is generating output (if it was working, output would be directed to /dev/null).

Log in as root, and type

crontab -e

Remove the line(s) that contain the command (you'll be in the vi editor, so

dd

will delete the entire line the cursor is on, etc), then do

:wq

to exit and save changes. No more cron job, no more emails.