docker-systemctl-replacement
docker-systemctl-replacement copied to clipboard
When control-C on systemctl log -f xxx, it raise an ugly KeyboardInterrupt
I think it's better to catch the KeyboardInterrupt.
I dont know what you're after. Looking at the logs like this had always been a bit hacky.
Thank you for you reply.
I think the right experience would be like this. Suppose I am using systemctl log -f unit_name to display the log. When I press Control-C, the log will stop to display anymore and print nothing instead of a bunch of stack trace log.
Also, systemctl log unit_name has the same problem. But in this case I can press Q to quit normally, so it is not bothering me like log -f.