]> code.citadel.org Git - citadel.git/blobdiff - webcit/setup.c
WebCit setup.c -- fixes for run on certain systems
[citadel.git] / webcit / setup.c
index ed8bc961423ad57c1be1bc5796eed309465f31a0..105b615194911c156b60893dcdb3e83285c732f1 100644 (file)
@@ -684,12 +684,8 @@ int main(int argc, char *argv[])
                install_init_scripts();
 
                if (!access("/etc/init.d/webcit", X_OK)) {
-                       for (a=0; a<=2; ++a) {
-                               progress("Restarting the WebCit service...", a, 3);
-                               if (a == 0) system("/etc/init.d/webcit stop >/dev/null 2>&1");
-                               if (a == 1) system("/etc/init.d/webcit start >/dev/null 2>&1");
-                               sleep(1);
-                       }
+                       system("/etc/init.d/webcit stop");
+                       system("/etc/init.d/webcit start");
                }
 
                sprintf(aaa,