Репозитории ALT
S: | 1.3.59-alt4 |
5.1: | 1.3.29-alt2 |
4.1: | 1.3.29-alt2 |
4.0: | 1.3.29-alt2 |
3.0: | 1.2.24-alt5 |
+backports: | 1.3.29-alt0.M30.1 |
Группа :: Система/Настройка/Загрузка и инициализация
Пакет: chkconfig
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: chkconfig-1.2.24-alt-add-del-xinetd.patch
Скачать
Скачать
diff -ur chkconfig-1.2.24~/chkconfig.c chkconfig-1.2.24/chkconfig.c
--- chkconfig-1.2.24~/chkconfig.c Sat Jan 26 19:51:31 2002
+++ chkconfig-1.2.24/chkconfig.c Sat Jan 26 19:50:50 2002
@@ -55,7 +55,11 @@
readServiceError(rc, name);
return 1;
}
- if (s.type == TYPE_XINETD) return 0;
+ if (s.type == TYPE_XINETD) {
+ setXinetdService(s, 0);
+ system("/etc/init.d/xinetd condreload >/dev/null 2>&1");
+ return 0;
+ }
for (level = 0; level < 7; level++) {
if (!findServiceEntries(name, level, &globres)) {
@@ -81,7 +85,11 @@
return 1;
}
- if (s.type == TYPE_XINETD) return 0;
+ if (s.type == TYPE_XINETD) {
+ setXinetdService(s, 1);
+ system("/etc/init.d/xinetd condreload >/dev/null 2>&1");
+ return 0;
+ }
for (i = 0; i < 7; i++) {
if (!isConfigured(name, i)) {
@@ -257,7 +257,7 @@
}
} else if (s.type == TYPE_XINETD) {
setXinetdService(s, state);
- system("/etc/init.d/xinetd reload >/dev/null 2>&1");
+ system("/etc/init.d/xinetd condreload >/dev/null 2>&1");
}
return 0;