[Bug 202814] cron_flags="-m mailto not used by periodic routines
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Sep 1 15:31:22 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202814
Bug ID: 202814
Summary: cron_flags="-m mailto not used by periodic routines
Product: Base System
Version: 10.2-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: conf
Assignee: freebsd-bugs at FreeBSD.org
Reporter: joeb1 at a1poweruser.com
Trying to change daily cron emails to go to user account instead of root.
I edited rc.conf and added this cron_flags="-m bob at mydomain"
followed by "service cron restart" console command.
Then issuing "ps auxww | grep cron" console command showed
root 1953 0,0 0.2 10184 1940 - Is 1:05PM 0:00.30 /usr/sbin/cron -m
bob at mydomain -s
But that night the periodic emails still went to root.
On the questions list Arthur Chance <freebsd at qeng-ho.org> explained that
periodic routines reroutes its output independent of cron's settings. Adding
this to periodic.conf is the work-a-round
daily_output="user at dom.ain"
weekly_output="$daily_output"
monthly_output="$daily_output"
daily_security_output="$daily_output"
weekly_security_output="$daily_output"
monthly_security_output="$daily_output"
where "user at dom.ain" would be "bob at mydomain"
This work-a-round should not be required if the logic of periodic adhered to
the man cron specs.
All the cron periodic routines need to be modified to be aware of the
cron_flags="-m 'bob at mydomain'" option and use it's value as the destination
email address. Would also be nice if error messages were issued for invalid
values. Should also work for any host user name like cron_flags="-m bob", IE no
mydomain needed for any user on same host.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list