MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _start_service_with_monitor

Function _start_service_with_monitor

webapp_modern.py:2671–2678  ·  view source on GitHub ↗
(service_name: str, timeout: int = 30)

Source from the content-addressed store, hash-verified

2669
2670 floor = _wtmod.SEV_RANK.get(cfg.get('watchtower_notify_min_severity', 'high'), 3)
2671 try:
2672 realert_s = max(0.0, float(cfg.get('watchtower_realert_hours', 0))) * 3600
2673 except (TypeError, ValueError):
2674 realert_s = 0.0
2675
2676 notifiable = []
2677 with _watchtower_lock:
2678 _wt_load_seen()
2679 for a in new:
2680 if a['rank'] < floor:
2681 continue

Callers 1

_execute_pwn_mode_switchFunction · 0.85

Calls 3

_run_systemctlFunction · 0.85
_collect_service_statusFunction · 0.85
_wait_for_service_activeFunction · 0.85

Tested by

no test coverage detected