version 1.12, 2003/10/14 15:36:21
|
version 1.14, 2003/12/08 18:59:30
|
Line 48 sub stop_daemon {
|
Line 48 sub stop_daemon {
|
print("not running\n"); |
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 'Restarting LON-CAPA'."\n"; |
print 'Ending LON-CAPA client and daemon processes'."\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); |
&stop_daemon($daemon); |
} |
} |
print 'Starting LON-CAPA client and daemon processes (please be patient)'. |
print 'Starting LON-CAPA client and daemon processes (please be patient)'. |
"\n"; |
"\n"; |
system("su -c '/home/httpd/perl/loncron' www"); |
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 'Restarting LON-CAPA'."\n"; |
print 'Ending LON-CAPA client and daemon processes'."\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); |
&stop_daemon($daemon); |
} |
} |
print 'Starting LON-CAPA client and daemon processes (please be patient)'. |
print 'Starting LON-CAPA client and daemon processes (please be patient)'. |
Line 70 elsif (($command eq "restartnew") or ($c
|
Line 70 elsif (($command eq "restartnew") or ($c
|
} |
} |
elsif ($command eq "stop") { |
elsif ($command eq "stop") { |
print 'Stopping LON-CAPA'."\n"; |
print 'Stopping LON-CAPA'."\n"; |
foreach my $daemon ('lonsql','lond','lonc','loncnew','lonhttpd') { |
foreach my $daemon ('lonsql','lond','lonc','lonhttpd') { |
&stop_daemon($daemon); |
&stop_daemon($daemon); |
} |
} |
} |
} |
elsif ($command eq "start") { |
elsif ($command eq "startold") { |
print 'Starting LON-CAPA'."\n"; |
print 'Starting LON-CAPA'."\n"; |
print 'Starting LON-CAPA client and daemon processes (please be patient)'. |
print 'Starting LON-CAPA client and daemon processes (please be patient)'. |
"\n"; |
"\n"; |
system("su -c '/home/httpd/perl/loncron' www"); |
system("su -c '/home/httpd/perl/loncron' www"); |
} |
} |
elsif ($command eq "startnew") { |
elsif ($command eq "start") { |
print 'Starting LON-CAPA'."\n"; |
print 'Starting LON-CAPA'."\n"; |
print 'Starting LON-CAPA client and daemon processes (please be patient)'. |
print 'Starting LON-CAPA client and daemon processes (please be patient)'. |
"\n"; |
"\n"; |