From a16d460fafebbde0dc7648e67bdd91cfa731373c Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Sun, 8 Mar 2015 16:41:16 +0100 Subject: [PATCH] sysstat init script may sometimes be called rc.sysstat 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 --- Makefile.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 8b0c32b..659b6ec 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 -- 2.40.0