File git-16-c3faa6cbc3a2b62c616104dbdaf9c5d04f278c99.patch of Package aaa_base.4074
commit c3faa6cbc3a2b62c616104dbdaf9c5d04f278c99
Author: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Mon Dec 21 14:34:12 2015 +0100
avoid recursion if systemd call chkconfig back for sysv units
diff --git a/files/usr/bin/chkconfig b/files/usr/bin/chkconfig
index 3879638..4b7e4c0 100755
--- a/files/usr/bin/chkconfig
+++ b/files/usr/bin/chkconfig
@@ -4,6 +4,12 @@ use strict;
use Getopt::Long;
use File::Temp 'tempfile';
+# avoid recursion if systemd calls us back for sysv units.
+if ($ENV{CHKCONFIG_RECURSIVE_CALL}) {
+ exit 0;
+}
+$ENV{CHKCONFIG_RECURSIVE_CALL} = 1;
+
my $initdir = '/etc/init.d';
my $inetddir = '/etc/inetd.d';
my $xinetddir = '/etc/xinetd.d';