Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37865975
en ru br
ALT Linux repositórios
S:1.3.59-alt4
5.0: 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

Group :: Sistema/Configurações/Boot e Init
RPM: chkconfig

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: chkconfig-1.2.24-alt-add-del-xinetd.patch
Download


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;
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009