def handle_stop_command(srv, pid):
service = '<STR_LIT>'.format(srv)<EOL>twisted_pid = filepath.FilePath(pid)<EOL>if not twisted_pid.exists():<EOL><INDENT>print('<STR_LIT>'.format(service))<EOL>sys.exit(-<NUM_LIT:1>)<EOL><DEDENT>pid = twisted_pid.open().read()<EOL>print('<STR_LIT>'.format(<EOL>service, pid).ljust(<NUM_LIT>), end='<STR_LIT>')<EOL>try:<EOL><INDENT>filepath.os.kill(int(pid), signal.SIGINT)<EOL>print('<STR_LIT>'.format(darkgreen('<STR_LIT>')))<EOL><DEDENT>except:<EOL><INDENT>print('<STR_LIT>'.format(darkred('<STR_LIT>')))<EOL>raise<EOL><DEDENT>
Kill the running service
        :param srv: `str` containing the service to kill
            passed in as underscore_case