aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rwxr-xr-xadd-service3
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 85ef28a..baa19d8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
2012-04-30 Colin Guthrie <colin@mageia.org> 0.24.10
* fix leaking of exit status failure.
* prefer native systemd install rules over manual symlinking
+ * mark a systemd-only service as "migrated" on install to avoid checking for
+ sysvinit migration when next upgraded.
2012-04-29 Colin Guthrie <colin@mageia.org> 0.24.9
* fix handling of masked and symlinked unit names
diff --git a/add-service b/add-service
index 0c0a887..dc09cb7 100755
--- a/add-service
+++ b/add-service
@@ -135,6 +135,9 @@ add_service() {
# Actually do enable/disable foo
if [ -n "$units_to_enable" ]; then
/bin/systemctl --quiet enable $units_to_enable >/dev/null
+ if [ -n "$srv" -a ! -f "${systemd_migration_dir}/$srv" ]; then
+ touch "${systemd_migration_dir}/$srv"
+ fi
fi
# When no native systemd unit exists, the above command will actually