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: [email protected]
Reporter: [email protected]
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@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@mydomain -s
But that night the periodic emails still went to root.
On the questions list Arthur Chance <[email protected]> explained that
periodic routines reroutes its output independent of cron's settings. Adding
this to periodic.conf is the work-a-round
daily_output="[email protected]"
weekly_output="$daily_output"
monthly_output="$daily_output"
daily_security_output="$daily_output"
weekly_security_output="$daily_output"
monthly_security_output="$daily_output"
where "[email protected]" would be "bob@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@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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"