Bug#792777: fails to send email on failure; falls over on circle at start of systemctl status

Jörg Sommer joerg at alea.gnuu.de
Sun Oct 21 08:22:14 BST 2018


Jörg Sommer hat am Sa 20. Okt, 11:29 (+0200) geschrieben:
> On Sat, 18 Jul 2015 15:25:06 +0200 Alexandre Detiste <alexandre.detiste at 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 at .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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20181021/d9edb9a9/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list