[Bug 1209146] [NEW] anacron jobs run with wrong environment variables

Andrey Bondarenko abondarenko at users.sourceforge.net
Wed Aug 7 09:22:22 UTC 2013


Public bug reported:

In Ubuntu 13.04 (anacron-2.3-19ubuntu2) is started from
/etc/cron.d/anacron like this

start -q anacron

This means anacron itself and its child processes would inherit
environment from init/upstart not from crond. As result all environment
variables defined in /etc/environment won't be set (upstart does not use
pam_env.so). In my case, this leads to debtags job failed with network
unreachable error, because my host is behind a proxy and http_proxy
variable is defined in /etc/environment.

The bug does not affect Debian with Init System V, because invoke-rc.d
would start rc script directly.

I suppose anacron should be either started directly from
/etc/cron.d/anacron or modified so it use pam to properly initialize
session for a job.

** Affects: anacron (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to anacron in Ubuntu.
https://bugs.launchpad.net/bugs/1209146

Title:
  anacron jobs run with wrong environment variables

Status in “anacron” package in Ubuntu:
  New

Bug description:
  In Ubuntu 13.04 (anacron-2.3-19ubuntu2) is started from
  /etc/cron.d/anacron like this

  start -q anacron

  This means anacron itself and its child processes would inherit
  environment from init/upstart not from crond. As result all
  environment variables defined in /etc/environment won't be set
  (upstart does not use pam_env.so). In my case, this leads to debtags
  job failed with network unreachable error, because my host is behind a
  proxy and http_proxy variable is defined in /etc/environment.

  The bug does not affect Debian with Init System V, because invoke-rc.d
  would start rc script directly.

  I suppose anacron should be either started directly from
  /etc/cron.d/anacron or modified so it use pam to properly initialize
  session for a job.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/anacron/+bug/1209146/+subscriptions




More information about the foundations-bugs mailing list