From owner-freebsd-questions@FreeBSD.ORG Wed May 16 19:44:59 2012 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 47C9B106566B for ; Wed, 16 May 2012 19:44:59 +0000 (UTC) (envelope-from kernel@webrz.net) Received: from webrz.xs4all.nl (webrz.xs4all.nl [82.95.248.216]) by mx1.freebsd.org (Postfix) with ESMTP id F3BE48FC0A for ; Wed, 16 May 2012 19:44:58 +0000 (UTC) Received: from webrz.xs4all.nl (localhost [127.0.0.1]) by webrz.xs4all.nl (Postfix) with ESMTP id 1A73550959 for ; Wed, 16 May 2012 21:43:52 +0200 (CEST) Received: from [10.10.10.44] (chimea.webrz.net [10.10.10.44]) by webrz.xs4all.nl (Postfix) with ESMTPA id D861350936 for ; Wed, 16 May 2012 21:43:51 +0200 (CEST) Message-ID: <4FB403B5.9010504@webrz.net> Date: Wed, 16 May 2012 21:44:53 +0200 From: Jos Chrispijn User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP @triton.webrz.net Cc: Subject: Newsyslog | Cronjob faulty? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2012 19:44:59 -0000 At midnight (00.00) I run this cronjob from my crontab: Crontab: 00 * * * * root newsyslog For some reason this goes wrong; (if I run 'newsyslog' on any other time, there is no error message). bzip2: Can't open input file /var/log/maillog.0: No such file or directory. newsyslog: `bzip2 -f /var/log/maillog.0' terminated with a non-zero status (1) /var/log: -rw-r----- 1 root wheel 63162 May 16 21:20 maillog -rw-r----- 1 root wheel 109 May 16 00:00 maillog.0.bz2 -rw-r----- 1 root wheel 73674 May 16 00:00 maillog.1 -rw-r----- 1 root wheel 111 May 15 00:00 maillog.2.bz2 -rw-r----- 1 root wheel 73050 May 15 00:00 maillog.3 -rw-r----- 1 root wheel 109 May 14 00:00 maillog.4.bz2 -rw-r----- 1 root wheel 184042 May 14 00:00 maillog.5 Can somebody tell me what goes wrong here? On my other FreeBSD server the same cronjob goes ok... thanks, Jos Chrispijn