Re: floc.net down
"alain_tesio" <[email protected]> Tue, 15 Sep 2009 18:13:52 -0000
| Newsgroups | gmane.games.diplomacy.judge.dp.discussion |
|---|---|
| Message-ID | <[email protected]> |
Thanks, I've created such a file: 20:04:51 dpjudge ~/bin $cat check #!/usr/bin/python -Ou import sys sys.path.insert(0, '/home/dpjudge/www') sys.path.insert(0, '/home/dpjudge/site-packages') import DPjudge.bin.check and this crontab: 9/20 * * * * $HOME/bin/check >> $HOME/log/cron.log 2>> $HOME/log/cron.err It looks to work fine, I have such lines in the log and no error: Checking deadlines at Tue Sep 15 18:09:01 2009 GMT wenatchee is not to deadline yet testgamediplocoa is delayed, now delay is 23 classical_32 is not to deadline yet htown is ready and will be processed now echo4 is delayed, now delay is 23 chriswari is not to deadline yet open is not to deadline yet stab09b08 is not to deadline yet stab09b09 is not to deadline yet --- In [email protected], Chris Babcock <cbabcock@...> wrote: > > On Mon, 14 Sep 2009 18:55:08 -0000 > "alain_tesio" <alain.dip@...> wrote: > > > - There is no crontab yet, I don't know what script should be > > scheduled. > > Here's the crontab on USPN: > > ### --------------------------------------- > ### Provide the PATH to the host.toolDir > ### because some tools use shell scripts > ### --------------------------------------- > #PATH = $PATH:/home/uspn/DPjudge/web/imaging > DPJUDGEDIR = /home/uspn/bin > > ### ------------------------------------------------------------ > ### The job below checks dpjudge game deadlines every 20 minutes > ### ------------------------------------------------------------ > 0,20,40 * * * * $DPJUDGEDIR/check >> /home/uspn/log/info 2>>/home/uspn/log/errors > > ### ------------------------------------------------------------ > > The paths will be different in another way apart from the obvious one. > In addition to being the USDP user, the DPjudge directory may not live > in the judge user's home directory. > > On USPN, the imaging utilities (netpbm) are already on the system path. > Floc may or may not have those installed. If you install recent > versions, it is still good to set up the path so that the judge can > find the compatibility interfaces for tools that were deprecated and > may have been discontinued. > > Chris > ------------------------------------