/etc/default/cron obsolete?
Bug #486558 reported by
niknah
This bug affects 11 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cron (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
Bug Description
Binary package hint: cron
Nothing important, it would confuse people less if unused files were removed.
I spent some time changing /etc/default/cron before I realised that it wasn't being used.
To add command line options, it's in /etc/init/cron.conf
Ubuntu 9.10
cron 3.0pl1-106ubuntu3
Changed in cron (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
To post a comment you must log in.
In my opinion this is a break of functionality.
A lot of people are custom with tweaking the configrations in /etc/default and will be wondering why things are breaking after migration of there servers to 10.04.
In /etc/default/cron was also the parsing of the system environment tweaked. ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----
The following functionality from cron.init is also missing in cron.upstart
-------
# Read the system's locale and set cron's locale. This locale
# will be inherited by cron (used to set charset of emails)
# and tasks running under it.
parse_environment () "/etc/environme nt" "/etc/default/ locale"
{
ENV_FILE="none"
[ -r /etc/environment ] && ENV_FILE=
[ -r /etc/default/locale ] && ENV_FILE=
[ $ENV_FILE = none ] && return
for var in LANG LC_ALL LC_CTYPE; do
value= $(egrep "^[^#]*${var}=" $ENV_FILE | tail -n1 | cut -d= -f2)
eval $var=$value
done
}
# Parse the system's environment environment
if [ "$READ_ENV" = "yes" ] ; then
export LANG LC_ALL LC_CTYPE
parse_
fi