(name)
Restart service with given name.
Restart service with given name.
Restart service with given name .
def restart_service(name):
    """
    Restart service with given name.
    """
    subprocess.run(["systemctl", "restart", name], check=True)
def restart_service ( name ) : subprocess . run ( [ "systemctl" , "restart" , name ] , check = True )