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

Andrey Borzenkov arvidjaar at gmail.com
Sat Dec 14 00:56:15 PST 2013


В Sat, 14 Dec 2013 09:22:46 +0100
Cecil Westerhof <Cecil.Westerhof at Snow.nl> пишет:

> 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"?


More information about the systemd-devel mailing list