aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xadd-service2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 5d850a5..27bcc3c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+ * use systemctl preset rather than enable to respect preset configuration
* drop hacky workaround for systemd reload on sysv initscript package removal
as a filetrigger with appropriate matching will suffice fine here
* drop systemd migration scripts we never used
diff --git a/add-service b/add-service
index 684d3db..6314c76 100755
--- a/add-service
+++ b/add-service
@@ -128,7 +128,7 @@ add_service() {
# Actually do enable/disable foo
if [ -n "$units_to_enable" ]; then
- /bin/systemctl --quiet enable $units_to_enable >/dev/null
+ /bin/systemctl --quiet preset $units_to_enable >/dev/null
if [ -n "$srv" -a ! -f "${systemd_migration_dir}/$srv" ]; then
touch "${systemd_migration_dir}/$srv"
fi