]> granicus.if.org Git - sysstat/commitdiff
sysstat init script may sometimes be called rc.sysstat
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 8 Mar 2015 15:41:16 +0000 (16:41 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 8 Mar 2015 15:41:16 +0000 (16:41 +0100)
In some distros sysstat init script is called rc.sysstat.
So use that name with chkconfig and when uninstalling, remove links with
names like S??rc.sysstat and K??rc.sysstat.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Makefile.in

index 8b0c32b2aee1704449f687c646920a7d3f97eec4..659b6ec59f04ef023e918e28de49e5a82d892f28 100644 (file)
@@ -424,7 +424,7 @@ endif
        elif [ -d $(DESTDIR)$(RC_DIR) ]; then \
                $(INSTALL_BIN) sysstat $(DESTDIR)$(RC_DIR)/rc.sysstat; \
                if [ -x $(CHKCONFIG) ]; then \
-                       cd $(DESTDIR)$(RC_DIR) && $(CHKCONFIG) --add sysstat; \
+                       cd $(DESTDIR)$(RC_DIR) && $(CHKCONFIG) --add rc.sysstat; \
                else \
                        [ -d $(DESTDIR)$(RC2_DIR) ] || mkdir -p $(DESTDIR)$(RC2_DIR); \
                        [ -d $(DESTDIR)$(RC3_DIR) ] || mkdir -p $(DESTDIR)$(RC3_DIR); \
@@ -494,13 +494,20 @@ endif
        rm -f $(DESTDIR)$(SYSCONFIG_DIR)/sysstat
        rm -f $(DESTDIR)$(SYSCONFIG_DIR)/sysstat.ioconf
        rm -f $(DESTDIR)$(RC2_DIR)/S??sysstat
+       rm -f $(DESTDIR)$(RC2_DIR)/S??rc.sysstat
        rm -f $(DESTDIR)$(RC3_DIR)/S??sysstat
+       rm -f $(DESTDIR)$(RC3_DIR)/S??rc.sysstat
        rm -f $(DESTDIR)$(RC5_DIR)/S??sysstat
+       rm -f $(DESTDIR)$(RC5_DIR)/S??rc.sysstat
 #              Delete possible kill entries installed by chkconfig
        rm -f $(DESTDIR)$(RC0_DIR)/K??sysstat
+       rm -f $(DESTDIR)$(RC0_DIR)/K??rc.sysstat
        rm -f $(DESTDIR)$(RC1_DIR)/K??sysstat
+       rm -f $(DESTDIR)$(RC1_DIR)/K??rc.sysstat
        rm -f $(DESTDIR)$(RC4_DIR)/K??sysstat
+       rm -f $(DESTDIR)$(RC4_DIR)/K??rc.sysstat
        rm -f $(DESTDIR)$(RC6_DIR)/K??sysstat
+       rm -f $(DESTDIR)$(RC6_DIR)/K??rc.sysstat
 #              Vixie cron entries also can be safely deleted here
        rm -f $(DESTDIR)/etc/cron.d/sysstat
 #              Id. for Slackware cron entries