diff --git a/README.md b/README.md index c1d3fba..9f3337a 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,9 @@ Build packages are stored in a cache `/var/cache/decman`. By default decman keep ### Systemd units +> [!NOTE] +> Decman will only enable and disable systemd systemd. It will not start or stop them. + Decman can enable systemd services, system wide or for a specific user. Decman will enable all units defined in the source, and disable them when they are removed from the source. If a unit is not defined in the source, decman will not touch it. ### Files diff --git a/src/decman/app.py b/src/decman/app.py index c167441..5486122 100644 --- a/src/decman/app.py +++ b/src/decman/app.py @@ -218,6 +218,9 @@ class Core: def _disable_units(self): to_disable = self.source.units_to_disable(self.store) l.print_list("Disabling systemd units:", to_disable) + if to_disable: + l.print_info( + "Disabled systemd units won't be stopped automatically.") if not self.only_print: self.systemctl.disable_units(to_disable) @@ -286,6 +289,9 @@ class Core: def _enable_units(self): to_enable = self.source.units_to_enable(self.store) l.print_list("Enabling systemd units:", to_enable) + if to_enable: + l.print_info( + "Enabled systemd units won't be started automatically.") if not self.only_print: self.systemctl.enable_units(to_enable)