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

Function _stop_service

webapp_modern.py:2681–2687  ·  view source on GitHub ↗
(service_name: str)

Source from the content-addressed store, hash-verified

2679 try:
2680 cfg['asset_inventory_interval_s'] = max(30, int(body['interval_s']))
2681 except (TypeError, ValueError):
2682 pass
2683 try:
2684 shared_data.save_config()
2685 except Exception as exc: # noqa: BLE001
2686 logger.debug(f"[asset_inventory] save_config failed: {exc}")
2687 return jsonify({'success': True,
2688 'enabled': bool(cfg.get('asset_inventory_enabled', False)),
2689 'interval_s': cfg.get('asset_inventory_interval_s', 120)})
2690

Callers 2

_deferred_self_stopFunction · 0.85
_execute_pwn_mode_switchFunction · 0.85

Calls 2

_run_systemctlFunction · 0.85
warningMethod · 0.80

Tested by

no test coverage detected