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

Cecil Westerhof Cecil.Westerhof at Snow.nl
Mon Dec 16 02:39:04 PST 2013


On 12/14/2013 09:22 AM, Cecil Westerhof 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’:
>      -- Logs begin at Tue, 2013-11-19 06:24:51 CET, end at Sat,
> 2013-12-14 09:15:01 CET. --
>      Dec 13 11:37:40 Equus.Decebal.nl java[20909]: Web Console server
> running at http://127.0.0.2:8082 (only local connections)
>      Dec 13 11:37:40 Equus.Decebal.nl java[20909]: TCP server running at
> tcp://127.0.0.2:9092 (only local connections)
>      Dec 13 11:42:21 Equus.Decebal.nl java[20975]: Web Console server
> running at http://127.0.0.2:8082 (only local connections)
>      Dec 13 11:42:21 Equus.Decebal.nl java[20975]: TCP server running at
> tcp://127.0.0.2:9092 (only local connections)
>      Dec 13 11:42:59 Equus.Decebal.nl java[21031]: Web Console server
> running at http://127.0.0.2:8082 (only local connections)
>      Dec 13 11:42:59 Equus.Decebal.nl java[21031]: TCP server running at
> tcp://127.0.0.2:9092 (only local connections)
>      Dec 13 11:43:06 Equus.Decebal.nl java[21068]: Web Console server
> running at http://127.0.0.2:8082 (only local connections)
>      Dec 13 11:43:06 Equus.Decebal.nl java[21068]: TCP server running at
> tcp://127.0.0.2:9092 (only local connections)
>      lines 1-9/9 (END)

I made a VM with openSUSE 13.1 (which has version 208) and there I get:
Dec 16 11:04:07 linux-r4lo.site systemd[1]: Starting H2 Database...
Dec 16 11:04:07 linux-r4lo.site systemd[1]: Started H2 Database.
Dec 16 11:04:07 linux-r4lo.site java[5521]: Web Console server running 
at http://127.0.0.2:8082 (only local connections)
Dec 16 11:04:08 linux-r4lo.site java[5521]: TCP server running at 
tcp://127.0.0.2:9092 (only local connections)
Dec 16 11:04:39 linux-r4lo.site systemd[1]: Stopping H2 Database...
Dec 16 11:04:39 linux-r4lo.site systemd[1]: h2.service: main process 
exited, code=exited, status=143/n/a
Dec 16 11:04:39 linux-r4lo.site systemd[1]: Stopped H2 Database.
Dec 16 11:04:39 linux-r4lo.site systemd[1]: Unit h2.service entered 
failed state.

So it looks like there was/is a problem with the 195 version.

Time to upgrade my system. Luckily the holiday season is almost there.


More information about the systemd-devel mailing list