On Sat, Dec 14, 2013 at 09:22:46AM +0100, 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) > > But ‘journalctl | grep h2’ gives: > Dec 13 11:38:22 Equus.Decebal.nl systemd[1]: h2.service: main > process exited, code=exited, status=143/n/a > Dec 13 11:38:22 Equus.Decebal.nl systemd[1]: Unit h2.service > entered failed state > Dec 13 11:42:32 Equus.Decebal.nl systemd[1]: h2.service: main > process exited, code=exited, status=143/n/a > Dec 13 11:42:32 Equus.Decebal.nl systemd[1]: Unit h2.service > entered failed state > Dec 13 11:43:03 Equus.Decebal.nl systemd[1]: h2.service: main > process exited, code=exited, status=143/n/a > Dec 13 11:43:03 Equus.Decebal.nl systemd[1]: Unit h2.service > entered failed state > > Should I not see that with the first command, or am I overlooking something? You should. Can you show the output of 'journalctl -o verbose' corresponding to both types of message above?
And for good measure, the output from SYSTEMD_LOG_LEVEL=debug journalctl -u h2 2>&1 >/dev/null|grep 'Journal filter' Zbyszek _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
