[systemd-devel] Why doe I not see the logging with -u
Andrey Borzenkov
arvidjaar at gmail.com
Sat Dec 14 01:29:10 PST 2013
В Sat, 14 Dec 2013 10:19:45 +0100
Cecil Westerhof <Cecil.Westerhof at Snow.nl> пишет:
> On 12/14/2013 09:56 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?
More information about the systemd-devel
mailing list