taylorthurlow / panda-motd

a utility for generating a more useful MOTD
MIT License
134 stars 6 forks source link

Refactor service status to fix #15 #18

Closed taylorthurlow closed 5 years ago

taylorthurlow commented 5 years ago

Resolves #15

taylorthurlow commented 5 years ago

@filalex77 Curious what you think about these changes. I switched so we call systemctl once per service. As noted in the referenced issue, the old systemctl output wouldn't include services that weren't running, so the results were sort of useless. This way we get a concrete "is active" or "is not active" response and it's probably even quicker than the previous method.

Br1ght0ne commented 5 years ago

This is awesome and I think it's the right way to do it.