From 1cf3986d4ee6dd22eead6523277f8e412a47c7e0 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 19 Dec 2006 04:38:01 +0000 Subject: [PATCH] Don't run init scripts while dialog is running. Evidently there is a conflict somewhere. --- citadel/setup.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/citadel/setup.c b/citadel/setup.c index 6f727a581..43c4358a9 100644 --- a/citadel/setup.c +++ b/citadel/setup.c @@ -1066,11 +1066,7 @@ int main(int argc, char *argv[]) /* Try to stop Citadel if we can */ if (!access("/etc/init.d/citadel", X_OK)) { - for (a=0; a<=2; ++a) { - progress("Stopping the Citadel service...", a, 2); - if (a == 0) system("/etc/init.d/citadel stop >/dev/null 2>&1"); - sleep(1); - } + system("/etc/init.d/citadel stop"); } /* Make sure Citadel is not running. */ @@ -1356,11 +1352,7 @@ NEW_INST: } if (!access("/etc/init.d/citadel", X_OK)) { - for (a=0; a<=2; ++a) { - progress("Starting the Citadel service...", a, 2); - if (a == 0) system("/etc/init.d/citadel start /dev/null 2>&1"); - sleep(1); - } + system("/etc/init.d/citadel start"); } if (test_server() == 0) { -- 2.39.2