Remind the user that systemd services won't be started/stopped

This commit is contained in:
Kivi Kaitaniemi
2025-01-19 11:23:06 +02:00
parent c091d18ee1
commit 53b227859c
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -163,6 +163,9 @@ Build packages are stored in a cache `/var/cache/decman`. By default decman keep
### Systemd units ### 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. 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 ### Files
+6
View File
@@ -218,6 +218,9 @@ class Core:
def _disable_units(self): def _disable_units(self):
to_disable = self.source.units_to_disable(self.store) to_disable = self.source.units_to_disable(self.store)
l.print_list("Disabling systemd units:", to_disable) 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: if not self.only_print:
self.systemctl.disable_units(to_disable) self.systemctl.disable_units(to_disable)
@@ -286,6 +289,9 @@ class Core:
def _enable_units(self): def _enable_units(self):
to_enable = self.source.units_to_enable(self.store) to_enable = self.source.units_to_enable(self.store)
l.print_list("Enabling systemd units:", to_enable) 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: if not self.only_print:
self.systemctl.enable_units(to_enable) self.systemctl.enable_units(to_enable)