def restart_service(service, log=False):
with settings():<EOL><INDENT>if log:<EOL><INDENT>bookshelf2.logging_helpers.log_yellow(<EOL>'<STR_LIT>' % service)<EOL><DEDENT>sudo('<STR_LIT>' % service)<EOL>if log:<EOL><INDENT>bookshelf2.logging_helpers.log_yellow(<EOL>'<STR_LIT>' % service)<EOL><DEDENT>sudo('<STR_LIT>' % service)<EOL><DEDENT>return True<EOL>
restarts a service