def restart_service(service):
with settings(hide('<STR_LIT>', '<STR_LIT>'), warn_only=True):<EOL><INDENT>log_yellow('<STR_LIT>' % service)<EOL>sudo('<STR_LIT>' % service)<EOL>log_yellow('<STR_LIT>' % service)<EOL>sudo('<STR_LIT>' % service)<EOL><DEDENT>
restarts a service