version 1.3, 2000/10/26 02:46:57
|
version 1.5, 2001/04/21 15:29:05
|
Line 22 if (($command eq "restart") or ($command
|
Line 22 if (($command eq "restart") or ($command
|
print "Ending LON-CAPA client and daemon processes\n"; |
print "Ending LON-CAPA client and daemon processes\n"; |
print `su -c '/bin/kill \`/bin/cat /home/httpd/perl/logs/*.pid\`' www`; |
print `su -c '/bin/kill \`/bin/cat /home/httpd/perl/logs/*.pid\`' www`; |
print "Starting LON-CAPA client and daemon processes (please be patient)\n"; |
print "Starting LON-CAPA client and daemon processes (please be patient)\n"; |
system("su -c '/home/httpd/perl/loncron' www"); |
system("su -c '/home/httpd/perl/loncron quick' www"); |
print "Restarting web server\n"; |
|
print `/etc/rc.d/init.d/httpd restart`; |
|
} |
} |
elsif ($command eq "stop") { |
elsif ($command eq "stop") { |
print "Stopping LON-CAPA\n"; |
print "Stopping LON-CAPA\n"; |
print `su -c '/bin/kill \`/bin/cat /home/httpd/perl/logs/*.pid\`' www`; |
print `su -c '/bin/kill \`/bin/cat /home/httpd/perl/logs/*.pid\`' www`; |
print "Stopping web server\n"; |
|
print `/etc/rc.d/init.d/httpd stop`; |
|
} |
} |
elsif ($command eq "start") { |
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)\n"; |
print "Starting LON-CAPA client and daemon processes (please be patient)\n"; |
system("su -c /home/httpd/perl/loncron www"); |
system("su -c '/home/httpd/perl/loncron quick' www"); |
print "Starting web server\n"; |
|
print `/etc/rc.d/init.d/httpd start`; |
|
} |
} |
elsif ($command eq "status") { |
elsif ($command eq "status") { |
$response=`/bin/cat /home/httpd/perl/logs/*.pid 2>&1`; |
$response=`/bin/cat /home/httpd/perl/logs/*.pid 2>&1`; |