Seems like an overkill. Can you please elaborate on the need for this class? I can see only sshd as the use case for this, which doesn't make much sense given that we would seldom want to turn off/on restart services. Also, this can be pretty dangerous.