Jörg Sommer hat am Sa 20. Okt, 11:29 (+0200) geschrieben:
> On Sat, 18 Jul 2015 15:25:06 +0200 Alexandre Detiste 
> <alexandre.deti...@gmail.com> wrote:
> > control: tag -1 moreinfo
> > 
> > Hi,
> > 
> > I can't find the correct environnement needed to reproduce this bug.
> 
> I'm having the same problem. This is the environment of the script
> `mail_on_failure` when called from *systemd*
> 
> ```
> USER=nobody
> HOME=/nonexistent
> LOGNAME=nobody
> JOURNAL_STREAM=8:15023569
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> INVOCATION_ID=8f1cf292d7024ede9aa1cb66dc58bef4
> PWD=/
> ```

I've found a workaround: Set the environment in the service file. Run
`systemctl edit cron-failure@.service` and insert

```
[Service]
Environment=LC_ALL=C.UTF-8
```

Regards Jörg

-- 
Life can only be understood backwards, but it must be lived forwards.
                                             (Soren Kierkegaard)

Attachment: signature.asc
Description: PGP signature

Reply via email to