aboutsummaryrefslogtreecommitdiffstats
path: root/add-service
diff options
context:
space:
mode:
Diffstat (limited to 'add-service')
-rwxr-xr-xadd-service3
1 files changed, 3 insertions, 0 deletions
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