MCPcopy Create free account
hub / github.com/Coooolfan/onlyboxes / has_systemd

Function has_systemd

scripts/install.py:259–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257
258
259def has_systemd() -> bool:
260 if shutil.which("systemctl") is None:
261 return False
262 result = run_cmd(["systemctl", "--version"], check=False)
263 return result.returncode == 0
264
265
266def can_write_systemd() -> bool:

Callers 1

detect_environmentFunction · 0.85

Calls 1

run_cmdFunction · 0.85

Tested by

no test coverage detected