File: openqa-livehandler

package info (click to toggle)
openqa 5.1764349525.ffb594867-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,264 kB
  • sloc: perl: 57,599; sql: 26,462; javascript: 8,466; xml: 2,229; sh: 1,705; makefile: 443; python: 249
file content (20 lines) | stat: -rwxr-xr-x 461 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env perl

# Copyright 2018-2020 SUSE LLC
# SPDX-License-Identifier: GPL-2.0-or-later

use Mojo::Base -strict;

use FindBin;
use lib "$FindBin::RealBin/../lib";

use OpenQA::LiveHandler;
use OpenQA::Utils qw(service_port set_listen_address fix_top_level_help);

fix_top_level_help;

# ensure the web socket connection won't timeout
$ENV{MOJO_INACTIVITY_TIMEOUT} ||= 15 * 60;

set_listen_address(service_port('livehandler'));
OpenQA::LiveHandler::run;