()
| 257 | |
| 258 | |
| 259 | def 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 | |
| 266 | def can_write_systemd() -> bool: |
no test coverage detected