From: Art Cancro Date: Tue, 19 Dec 2006 04:50:13 +0000 (+0000) Subject: WebCit setup.c -- fixes for run on certain systems X-Git-Tag: v7.86~3781 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=59cbd2b1067403a64b165885ba25ec4883035c20;p=citadel.git WebCit setup.c -- fixes for run on certain systems --- diff --git a/webcit/setup.c b/webcit/setup.c index ed8bc9614..105b61519 100644 --- a/webcit/setup.c +++ b/webcit/setup.c @@ -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,