DrTrigon has uploaded a new change for review. https://gerrit.wikimedia.org/r/103594
Change subject: update; adopted to some changes in order to properly setup web space and crontab (grid engine jobs) ...................................................................... update; adopted to some changes in order to properly setup web space and crontab (grid engine jobs) Change-Id: Ife058c94b54e2b91b54511f59f9ce6be8d2479fc --- A .description M crontab M fabfile.py A public_html/index.html 4 files changed, 92 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/bots/drtrigonbot refs/changes/94/103594/1 diff --git a/.description b/.description new file mode 100644 index 0000000..c5e1c57 --- /dev/null +++ b/.description @@ -0,0 +1 @@ +<p><a href="https://wikitech.wikimedia.org/wiki/DrTrigonBot">DrTrigonBot</a> is a Python robot (basing on <a href="https://www.mediawiki.org/wiki/Manual:Pywikibot">Pywikibot</a> framework) that runs on <a href="http://toolserver.org/~quentinv57/sulinfo/DrTrigonBot">several Wikipedia languages</a>. diff --git a/crontab b/crontab index f843f60..21df02e 100644 --- a/crontab +++ b/crontab @@ -1,3 +1,20 @@ +# This is the cron(ie)tab file for DrTrigonBot on server. +# +# Install this file to your local crontab by: +# $ crontab [-u user] pywikibot-drtrigonbot/crontab +# Check the locally installed one: +# $ crontab -l +# (on the toolserver replace "crontab" with "cronie") +# +# This file contains of 2 sections: +# * toolserver (TS) +# * tool labs (labs) +# The one you don't need should either be commented out or deleted. + +### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### +# toolserver (TS) +### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### + # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.ji5t0i/crontab installed on Wed Dec 23 11:02:53 2009) # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $) @@ -30,3 +47,60 @@ # arch=sol; because of rrdtool and 32bit vs. 64bit arch #06 0 * * * qcronsub -l h_rt=00:05:00 -l virtual_free=50M -l arch=* -m as -j y -b y -N maintenance $HOME/warnuserquota.py >/dev/null 06 0 * * * qcronsub -l h_rt=00:05:00 -l virtual_free=50M -l arch=sol -m as -j y -b y -N maintenance $HOME/warnuserquota.py >/dev/null + +### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### +# tool labs (labs) +### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### + +# Edit this file to introduce tasks to be run by cron. +# +# Each task to run has to be defined through a single line +# indicating with different fields when the task will be run +# and what command to run for the task +# +# To define the time you can provide concrete values for +# minute (m), hour (h), day of month (dom), month (mon), +# and day of week (dow) or use '*' in these fields (for 'any').# +# Notice that tasks will be started based on the cron's system +# daemon's notion of time and timezones. +# +# Output of the crontab jobs (including errors) is sent through +# email to the user the crontab file belongs to (unless redirected). +# +# For example, you can run a backup of all your user accounts +# at 5 a.m every week with: +# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ +# +# For more information see the manual pages of crontab(5) and cron(8) +# +# m h dom mon dow command + +PATH=/usr/local/bin:/usr/bin:/bin + +# pywikibot-core: script_wui.py +06 0 * * * jstart -l h_vmem=512M -N script_wui python $HOME/pywikibot-core/pwb.py script_wui.py -log + +# pywikibot-compat: sum_disc.py +36 2 * * * jsub -l h_vmem=1024M -N sum_disc python $HOME/pywikibot-compat/pwb.py -sum_disc -simulate +06 2 */14 * * jsub -l h_vmem=256M -N compbot python $HOME/pywikibot-compat/pwb.py -sum_disc -compress_history:[] -simulate + +## pywikibot-compat: sum_disc.py +#36 2 * * * jsub -l h_vmem=1024M -N sum_disc python $HOME/pywikibot-compat/pwb.py -sum_disc +#06 2 */14 * * jsub -l h_vmem=256M -N compbot python $HOME/pywikibot-compat/pwb.py -sum_disc -compress_history:[] + +## pywikibot-compat: catimages.py +#06 20 * * * jsub -l h_vmem=1024M -N catimages python $HOME/pywikibot-compat/pwb.py -catimages + +## pywikibot-compat: subster.py, subster_irc.py +#36 6 * * * jsub -l h_vmem=1024M -N subster python $HOME/pywikibot-compat/pwb.py -subster +#06 * * * * jstart -l h_vmem=512M -N ircbot python $HOME/pywikibot-compat/pwb.py -subster_irc +#06 0 * * * jsub -l h_vmem=512M -N subster_meta python $HOME/pywikibot-compat/pwb.py -subster -family:meta -lang: +#36 0 * * * jsub -l h_vmem=512M -N subster_frr python $HOME/pywikibot-compat/pwb.py -subster -lang:frr +#06 1 * * * jsub -l h_vmem=512M -N subster_en python $HOME/pywikibot-compat/pwb.py -subster -lang:en +#36 1 * * * jsub -l h_vmem=512M -N subster_nl python $HOME/pywikibot-compat/pwb.py -subster -lang:nl +#06 * * * * jsub -l h_vmem=512M -N subster_ar python $HOME/pywikibot-compat/pwb.py -subster -lang:ar +#06 3 * * * jsub -l h_vmem=512M -N subster_data python $HOME/pywikibot-compat/pwb.py -subster -family:wikidata -lang:wikidata + +## pywikibot-drtrigonbot: fabfile ... maintenance ?! +## arch=sol; because of rrdtool and 32bit vs. 64bit arch +#06 0 * * * jsub -l h_vmem=128M -j y -N maintenance python $HOME/warnuserquota.py >/dev/null diff --git a/fabfile.py b/fabfile.py index 5b596dc..95482bb 100644 --- a/fabfile.py +++ b/fabfile.py @@ -139,6 +139,7 @@ # local('cp -r pywikibot-drtrigonbot/public_html/* public_html/') local('ln -s ~/pywikibot-drtrigonbot/public_html/tsnotice.css public_html/tsnotice.css') local('ln -s ~/pywikibot-drtrigonbot/public_html/cgi-bin/* public_html/cgi-bin/') + local('ln -s ~/pywikibot-drtrigonbot/public_html/index.html public_html/index.html') def dl_compat(): # https://www.mediawiki.org/wiki/Manual:Pywikipediabot/Installation#Setup_on_Wikimedia_Labs.2FTool_Labs_server @@ -166,6 +167,7 @@ def sl_drtrigonbot(): local('ln -s pywikibot-drtrigonbot/README README') local('ln -s pywikibot-drtrigonbot/warnuserquota.py warnuserquota.py') + local('ln -s pywikibot-drtrigonbot/.description .description') def sl_compat(): if LABS: # labs-tools diff --git a/public_html/index.html b/public_html/index.html new file mode 100644 index 0000000..2d91def --- /dev/null +++ b/public_html/index.html @@ -0,0 +1,15 @@ +<html> +<head> +<meta http-equiv="Refresh" content="0; +URL=cgi-bin/panel.py"> +</head> +<body> +<p>This is an automatic redirect to DrTrigonBot's status panel on this server.</p> +<p>If you are able to read this text, the redirect is not not working, please click <a +href="cgi-bin/panel.py">here</a> or try to contact the owner of this document: +<tt>drtrigon</tt> [at] <tt>toolserver</tt> [dot] <tt>org</tt>.</p> +<p>The DrTrigonBot project frontpage can be reached also, please choose: <a +href="http://wiki.toolserver.org/view/User:DrTrigon">toolserver (TS)</a> or <a +href="https://wikitech.wikimedia.org/wiki/DrTrigonBot">tool labs (labs)</a>.</p> +</body> +</html> -- To view, visit https://gerrit.wikimedia.org/r/103594 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ife058c94b54e2b91b54511f59f9ce6be8d2479fc Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/bots/drtrigonbot Gerrit-Branch: master Gerrit-Owner: DrTrigon <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
