From 0d8118dd0edd7da84a516b168da5e3f7ce412416 Mon Sep 17 00:00:00 2001 From: Kivi Kaitaniemi Date: Sat, 18 May 2024 02:31:40 +0300 Subject: [PATCH] Dont start enabled systemd units immediately --- src/decman/config.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/decman/config.py b/src/decman/config.py index 8cc4983..57eda62 100644 --- a/src/decman/config.py +++ b/src/decman/config.py @@ -89,7 +89,7 @@ class Commands: """ Running this command enables the given systemd units. """ - return ["systemctl", "enable", "--now", "--quiet"] + units + return ["systemctl", "enable", "--quiet"] + units def disable_units(self, units: list[str]) -> list[str]: """ @@ -99,16 +99,14 @@ class Commands: def enable_user_units(self, units: list[str], user: str) -> list[str]: """ - Running this command enables the given systemd units for the user it's run as. + Running this command enables the given systemd units for the user. """ - return [ - "systemctl", "--quiet", "--user", "-M", f"{user}@", "enable", - "--now" - ] + units + return ["systemctl", "--quiet", "--user", "-M", f"{user}@", "enable" + ] + units def disable_user_units(self, units: list[str], user: str) -> list[str]: """ - Running this command disables the given systemd units fol the user it's run as. + Running this command disables the given systemd units for the user. """ return ["systemctl", "--quiet", "--user", "-M", f"{user}@", "disable" ] + units