aboutsummaryrefslogtreecommitdiffstats
path: root/rpm-helper.macros.in
diff options
context:
space:
mode:
Diffstat (limited to 'rpm-helper.macros.in')
-rw-r--r--rpm-helper.macros.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/rpm-helper.macros.in b/rpm-helper.macros.in
index d567f10..8d0859a 100644
--- a/rpm-helper.macros.in
+++ b/rpm-helper.macros.in
@@ -65,3 +65,9 @@
%_postun_webapp() %_del_webapp_helper %{name} $1 \
%{nil}
+# systemd support
+%_systemd_migrate_service() \
+if [ -x /bin/systemctl ] && /sbin/chkconfig --no-redirect --level=3 %{1}; then \
+ /bin/systemctl --quiet enable %{1}.service \
+fi \
+%{nil}