Oden Eriksson <[EMAIL PROTECTED]> writes:

> Hmm..., could this be implemented in "ntsysv" to? Sort of the way linuxconf 
> handles this?

<URL:http://www.linux-mandrake.com/cgi-bin/cvsweb.cgi/SPECS/chkconfig/chkconfig-1.2.12-adddelxinetd.patch>

--- chkconfig-1.2.12/chkconfig.c.chmou  Sat Sep 23 14:35:50 2000
+++ chkconfig-1.2.12/chkconfig.c        Sat Sep 23 14:37:20 2000
@@ -62,7 +62,11 @@
        readServiceError(rc, name);
        return 1;
     }
-    if (s.type == TYPE_XINETD) return 0;
+    if (s.type == TYPE_XINETD) {
+            setXinetdService(s, 0);
+            system("/sbin/service xinetd reload >/dev/null 2>&1");
+            return 0;
+    }
 
     for (level = 0; level < 7; level++) {
            if (!findServiceEntries(name, level, &globres)) {
@@ -86,7 +90,11 @@
        return 1;
     }
        
-    if (s.type == TYPE_XINETD) return 0;
+    if (s.type == TYPE_XINETD) {
+            setXinetdService(s, 1);
+            system("/sbin/service xinetd reload >/dev/null 2>&1");
+            return 0;
+    }
     
     for (i = 0; i < 7; i++) {
        if (!isConfigured(name, i)) {


-- 
http://www.linux-mandrake.com/en/club/

Reply via email to