Commit d9bc98f
committed
resource-tuner: start service only when needed; guard systemctl ops
- Check current state first (systemctl is-active/is-enabled) skip if active.
- Enable only when disabled, run daemon-reload before attempting start.
- Start only if not running, always print final
- Avoid redundant enable/start calls, reduces noise and race risk.
- Preserve existing PASS/SKIP policy and names, no logic changes to tests.
- Replace prior one-liners with readable multi-line flow (no behavioral change).
Signed-off-by: Srikanth Muppandam <[email protected]>1 parent 115d9af commit d9bc98f
1 file changed
+220
-67
lines changed
0 commit comments