aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/AUTOJUDGING.txt3
-rw-r--r--doc/READMEvm.txt3
-rwxr-xr-xtools/autojudge.sh26
3 files changed, 3 insertions, 29 deletions
diff --git a/doc/AUTOJUDGING.txt b/doc/AUTOJUDGING.txt
index cf81f06..8406a4f 100644
--- a/doc/AUTOJUDGING.txt
+++ b/doc/AUTOJUDGING.txt
@@ -34,8 +34,7 @@ and if the current working directory (ie, ".") is included
in the PATH environment variable.
$ sudo /bin/bash
-# cd /var/www/boca/src
-# /var/www/boca/tools/autojudge.sh
+# /var/www/boca/tools/boca-autojudge.sh ## or /usr/sbin/boca-autojudge
The autojudging.php will stay running until CRTL+C is
pressed or it's killed by some other way. Autojudging waits
diff --git a/doc/READMEvm.txt b/doc/READMEvm.txt
index 49d43c5..a005093 100644
--- a/doc/READMEvm.txt
+++ b/doc/READMEvm.txt
@@ -76,7 +76,8 @@ computer. About the configuration, the only difference between the autojudge com
team's computers is the setup of the database password, as mentioned before. You must set up
the database password during the initialization of the autojudging computer. Then, to run the
autojudging system, you need to login as icpcadmin (privileged user), open a command-line
-terminal (it is inside accessories), and run "sudo /var/www/boca/tools/autojudge.sh" (without quotes).
+terminal (it is inside accessories), and run "sudo /var/www/boca/tools/boca-autojudge.sh"
+(or you might want to use the script installed in /usr/sbin/boca-autojudge if using apt-get).
If everything is fine, some dots will appear on the screen while the script runs an infinite
loop waiting for submissions. Ctrl-C stops the autojudge. The autojudging shall be started
after configuring the server to run the contest, otherwise it will eventually output an error or
diff --git a/tools/autojudge.sh b/tools/autojudge.sh
deleted file mode 100755
index 6123eed..0000000
--- a/tools/autojudge.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/bash
-# ////////////////////////////////////////////////////////////////////////////////
-# //BOCA Online Contest Administrator
-# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
-# //
-# // This program is free software: you can redistribute it and/or modify
-# // it under the terms of the GNU General Public License as published by
-# // the Free Software Foundation, either version 3 of the License, or
-# // (at your option) any later version.
-# //
-# // This program is distributed in the hope that it will be useful,
-# // but WITHOUT ANY WARRANTY; without even the implied warranty of
-# // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# // GNU General Public License for more details.
-# // You should have received a copy of the GNU General Public License
-# // along with this program. If not, see <http://www.gnu.org/licenses/>.
-# ////////////////////////////////////////////////////////////////////////////////
-# // Last modified 06/aug/2012 by cassio@ime.usp.br
-if [ "`id -u`" != "0" ]; then
- echo "Must be run as root"
- exit 1
-fi
-bocadir=/var/www/boca
-[ -r /etc/boca.conf ] && . /etc/boca.conf
-cd $bocadir/src
-php private/autojudging.php