For development/testing reasons, a service might be restarted a lot. It would be very handy, to have a journalctl parameter which allows to only show entries of the current service runtime (similar to -b for the current system boot, but with the scope reduced from the system to the service runtime). Currently, this is only possible by manually looking up the time when the service started and then using --since= to filter the ouput. Having something like -s/--since-start would make this way easier.
Agreed, that'd be useful.
+1 I tried to do this with 'cursor' options, but it was horribly convoluted; now my script just send by mail the default overview of the journal as shown by 'systemctl status <service>' & users must SSH in to get the detail. 'journalctl -o cat' still show 'Starting ...' at the top & 'Started ...' at the bottom. It would be nice if there was a way to hide those, especialy for Type=oneshot services.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.