def systemd(service, start=True, enabled=True, unmask=False, restart=False):
with settings(hide('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>warn_only=True, capture=True):<EOL><INDENT>if restart:<EOL><INDENT>sudo('<STR_LIT>' % service)<EOL><DEDENT>else:<EOL><INDENT>if start:<EOL><INDENT>sudo('<STR_LIT>' % service)<EOL><DEDENT>else:<EOL><INDENT>sudo('<STR_LIT>' % service)<EOL><DEDENT><DEDENT>if enabled:<EOL><INDENT>sudo('<STR_LIT>' % service)<EOL><DEDENT>else:<EOL><INDENT>sudo('<STR_LIT>' % service)<EOL><DEDENT>if unmask:<EOL><INDENT>sudo('<STR_LIT>' % service)<EOL><DEDENT><DEDENT>
manipulates systemd services