[][src]Function lxcrond::exec::execute_job

pub fn execute_job(job: &Job) -> bool

Contains code relating to executing jobs. Code here is unsafe and Linux specific, (might work on other nix flavours) Sets standard env vars that might break stuff if they are missing.

  • PATH - copied from user that runs lxcrond
  • USER and USERNAME - copied from the lxcrontab entry
  • SHELL - hardcoded to /bin/sh, in lxinitd containers it expected to be missing or symlinked to /bin/false or /bin/rosh
  • HOME - set to / or if possible copied from the /etc/password entry for this user.