[systemd-devel] journal: how to query journal to see ALL output of given unit?

Warpme warpme at o2.pl
Mon Jan 6 12:09:56 PST 2014


Hi *

I have question regarding logging with help of systemd journal.
I have mysql daemon unit which so some housekeeping after daemon start 
(see below).
My question is: what is best method to query journal to see _ALL_ 
execution output of mysqld.service unit?
Kicking 'journalctl --unit mysqld.service' gives output of 
'/usr/bin/mysqld' but not '/usr/local/bin/mysqld-check.sh'
Thx in advance!



----------------------
mysqld.service

[Unit]
Description=MySQL Server
After=syslog.target network.target asd.service
BindTo=asd.service

[Service]
WorkingDirectory=/usr
ExecStartPre=/bin/mkdir -p /var/run/mysqld
ExecStartPre=/bin/mkdir -p /var/state/mysqld
ExecStartPre=/bin/chown mysql:mysql /var/run/mysqld

ExecStart=/bin/su mysql -c "/usr/bin/mysqld 
--defaults-file=/etc/mysql/my.cnf --datadir=/var/lib/mysql 
--socket=/var/run/mysqld/mysqld.sock"

ExecStartPost=/usr/bin/sleep 8
ExecStartPost=/usr/local/bin/mysqld-check.sh
ExecStartPost=/usr/bin/touch /var/state/mysqld/mysqld.dirty

ExecStopPost=/bin/rm -rf /var/state/mysqld/mysqld.dirty

[Install]
WantedBy=multi-user.target



More information about the systemd-devel mailing list