diff options
author | Colin Guthrie <colin@mageia.org> | 2012-09-30 14:18:41 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2012-09-30 14:18:41 +0000 |
commit | f2f4d7a7eef3271592381b9383708a8a4633053a (patch) | |
tree | 3638b4d4c973e04a06d9ed7c4b7df2e78c28d51d | |
parent | 635a4c96fbe1f5dff51bf15fc444d3ab18519287 (diff) | |
download | rpm-helper-f2f4d7a7eef3271592381b9383708a8a4633053a.tar rpm-helper-f2f4d7a7eef3271592381b9383708a8a4633053a.tar.gz rpm-helper-f2f4d7a7eef3271592381b9383708a8a4633053a.tar.bz2 rpm-helper-f2f4d7a7eef3271592381b9383708a8a4633053a.tar.xz rpm-helper-f2f4d7a7eef3271592381b9383708a8a4633053a.zip |
Mark a fresh install of a systemd service as 'migrated' to avoid subsequent checks on upgrade.
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | add-service | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -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 |