[systemd-devel] Service runs as imaps, but imaps can not read the journal

Lennart Poettering lennart at poettering.net
Tue Apr 7 08:11:17 PDT 2015


On Sat, 04.04.15 09:14, Cecil Westerhof (cldwesterhof at gmail.com) wrote:

> I have the following fetchMail.service file:
>     [Unit]
>     Description=Fetch email for the IMAPS server
>     After=network.target
> 
>     [Service]
>     Type=simple
>     ExecStart=/home/imaps/bin/fetchMail.sh
>     Restart=always
>     User=imaps
>     StandardError=journal
> 
>     [Install]
>     WantedBy=multi-user.target
> 
> But when I as imaps run:
>     journalctl --since="2015-04-04 08:00"
> 
> I do not see any log information. Would it not be logical that the user can
> see the log information of its own process?
> 
> This is with systemd version 210.

See the man page for journal.conf, option SplitMode=.

Basically, by default journal only splits up journal files for login
sessions, i.e. real "human" users, not system users.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list