[LON-CAPA-cvs] cvs: loncom /init.d loncontrol
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 06 Nov 2003 15:05:23 -0000
albertel Thu Nov 6 10:05:23 2003 EDT
Modified files:
/loncom/init.d loncontrol
Log:
- change to default to using loncnew
Index: loncom/init.d/loncontrol
diff -u loncom/init.d/loncontrol:1.12 loncom/init.d/loncontrol:1.13
--- loncom/init.d/loncontrol:1.12 Tue Oct 14 11:36:21 2003
+++ loncom/init.d/loncontrol Thu Nov 6 10:05:23 2003
@@ -48,20 +48,20 @@
print("not running\n");
}
-if (($command eq "restart") or ($command eq "reload")) {
+if (($command eq "restartold") or ($command eq "reloadold")) {
print 'Restarting LON-CAPA'."\n";
print 'Ending LON-CAPA client and daemon processes'."\n";
- foreach my $daemon ('lonsql','lond','lonc','loncnew','lonhttpd') {
+ foreach my $daemon ('lonsql','lond','lonc','lonhttpd') {
&stop_daemon($daemon);
}
print 'Starting LON-CAPA client and daemon processes (please be patient)'.
"\n";
system("su -c '/home/httpd/perl/loncron' www");
}
-elsif (($command eq "restartnew") or ($command eq "reloadnew")) {
+elsif (($command eq "restart") or ($command eq "reload")) {
print 'Restarting LON-CAPA'."\n";
print 'Ending LON-CAPA client and daemon processes'."\n";
- foreach my $daemon ('lonsql','lond','lonc','loncnew','lonhttpd') {
+ foreach my $daemon ('lonsql','lond','lonc','lonhttpd') {
&stop_daemon($daemon);
}
print 'Starting LON-CAPA client and daemon processes (please be patient)'.
@@ -70,7 +70,7 @@
}
elsif ($command eq "stop") {
print 'Stopping LON-CAPA'."\n";
- foreach my $daemon ('lonsql','lond','lonc','loncnew','lonhttpd') {
+ foreach my $daemon ('lonsql','lond','lonc','lonhttpd') {
&stop_daemon($daemon);
}
}