projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7af4fe0
)
WebCit setup.c -- fixes for run on certain systems
author
Art Cancro
<ajc@citadel.org>
Tue, 19 Dec 2006 04:50:13 +0000
(
04:50
+0000)
committer
Art Cancro
<ajc@citadel.org>
Tue, 19 Dec 2006 04:50:13 +0000
(
04:50
+0000)
webcit/setup.c
patch
|
blob
|
history
diff --git
a/webcit/setup.c
b/webcit/setup.c
index ed8bc961423ad57c1be1bc5796eed309465f31a0..105b615194911c156b60893dcdb3e83285c732f1 100644
(file)
--- 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,