aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2011-01-26 18:05:21 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2011-01-26 18:05:21 +0000
commitea89dde8cdd836e010383efda56de5b9b800f662 (patch)
treefa47575feb2d1116b4da91a456ae148d4657946f
parent42cb56f0c3f3306974c2b784c59bb2bfb80461b9 (diff)
downloadrpm-helper-ea89dde8cdd836e010383efda56de5b9b800f662.tar
rpm-helper-ea89dde8cdd836e010383efda56de5b9b800f662.tar.gz
rpm-helper-ea89dde8cdd836e010383efda56de5b9b800f662.tar.bz2
rpm-helper-ea89dde8cdd836e010383efda56de5b9b800f662.tar.xz
rpm-helper-ea89dde8cdd836e010383efda56de5b9b800f662.zip
Enable systemd units on upgrade.
-rwxr-xr-xadd-service3
1 files changed, 3 insertions, 0 deletions
diff --git a/add-service b/add-service
index 6ab9244..c05ad5c 100755
--- a/add-service
+++ b/add-service
@@ -83,6 +83,9 @@ else
if [ -f "$1" ]; then
/sbin/chkconfig --add $srv
+ if [ -x /bin/systemctl ]; then
+ /bin/systemctl --enable ${srv}.service
+ fi
fi
# restart the service if already running