[systemd-devel] Why doe I not see the logging with -u

Cecil Westerhof Cecil.Westerhof at Snow.nl
Sat Dec 14 01:35:48 PST 2013


On 12/14/2013 10:29 AM, Andrey Borzenkov wrote:
>>>> I made a first setup to make a service for the H2 database. I made the
>>>> folowing service file:
>>>>        [Unit]
>>>>        Description=H2 Database
>>>>
>>>>        [Service]
>>>>        Type=simple
>>>>        ExecStart=/usr/bin/java -cp /home/cecil/java/h2/bin/h2-1.3.174.jar
>>>> org.h2.tools.Console -tool -tcp
>>>>        Restart=always
>>>>        User=cecil
>>>>
>>>>        [Install]
>>>>        WantedBy=multi-user.target
>>>>
>>>> After starting and stopping I got with ‘journalctl -u h2’:
>>> ...
>>>>
>>>> Should I not see that with the first command, or am I overlooking something?
>>>
>>>
>>> Did you try "journalctl -u h2.service"?
>>
>> I did not, but that should give the same result. I just tried it and it
>> does give the same result.
>
> As user or as root?

As root of-course.


More information about the systemd-devel mailing list