(name, unit, path="/etc/systemd/system")
Install unit with given name
Install unit with given name
Install unit with given name
def install_unit(name, unit, path="/etc/systemd/system"):
    """
    Install unit with given name
    """
    with open(os.path.join(path, name), "w") as f:
        f.write(unit)
def install_unit ( name , unit , path = "/etc/systemd/system" ) : with open ( os . path . join ( path , name ) , "w" ) as f : f . write ( unit )