berekuk/Ubic — pull request #64 by jhthorsen (2013-11-24 07:58:45+00:00)
Title: Fix Ubuntu crontab does not have /usr/local/bin in PATH

I couldn't understand why my services didn't start on boot, but of course it had to do with crontab don't doing the right thing.

Maybe we could also make ubic log a bit more, when it fail to execute because of missing PATH entry, but I'm not sure where to do that.

I don't get why it's failing though, since I thought these lines in ubic and ubic-watchdog was supposed to fix that:

unless (grep { $_ eq '/usr/local/bin' } split /:/, $ENV{PATH}) {
$ENV{PATH} .= "/usr/local/bin:$ENV{PATH}";
}

I would very much like the lines above to be removed, since it's messing things up when you have a custom perl installed in that location. I think having the right environment in the crontab is a better fix.