When I look for systemd job timing I get a lot of docks about timers which isn't what I'm looking for. How would I time the length of execution of a systemctl start xyz job

share|improve this question

You can use the time command.

In your case:

time systemctl start xyz
share|improve this answer
   
I don't believe this works. For long running commands, it will return immediately. Status will show it is actively running as background process. Probably I have to do some jounalctl -u xyz.service but I don't know what command to get the timing on the last run– Jazz Man2 days ago
   
It works under systemd's definition of a "job" (where a job may be e.g. "start unit xyz.service"), your definition is just different from that.– grawity2 days ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.