mirror of
https://github.com/kiviktnm/decman.git
synced 2026-09-19 12:08:28 +00:00
Remind the user that systemd services won't be started/stopped
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user