[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#662140: [zfsutils] Broken cron.d task



Package: zfsutils
Version: 9.0-1
Severity: normal
Tags: patch

I got this morning a failure report on some kfreebsd boxes:

From: root@somebox (Cron Daemon)
To: root@somebox
Subject: Cron <root@somebox> if [ $(date +%d) -le 7 ]; then zpool list -H -o name | xargs zpool scrub; fi
Content-Type: text/plain; charset=UTF-8
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
Message-Id: <someid>
Date: Sun,  4 Mar 2012 00:57:01 -0300 (ART)

/bin/sh: 1: zpool: not found
xargs: zpool: No such file or directory


Tracking it down, the reason behind it is because either full path to
zpool wasn't specified or because PATH doesn't include :/sbin on the
array, as you can see on the ENV report.


Please either provide a fullpath to the script or export "/sbin" on PATH
environment value for this cron task.


Cheers,

Dererk

-- 
BOFH excuse #373:
Suspicious pointer corrupted virtual machine
BOFH excuse #307:
emissions from GSM-phones


Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: