Next: Client, Previous: Tools, Up: Conceptual model [Contents][Index]
The SCRIPTS activity gather system level operations MEDIATEX is using. This activity provides basic fonctions on BASH files that are not describe in this documentation. This activity is divided into 11 process:
| • init.d: | init.d | |
| • cgiClient: | cgiClient | |
| • cronHourly-cronDaily: | cronHourly-cronDaily | |
| • init-remove-purge: | init-remove-purge | |
| • addUser-delUser: | addUser-delUser | |
| • new-free-clean: | new-free-clean | |
| • upgrade-commit-pull-push: | upgrade-commit-pull-push | |
| • bind-unbind: | bind-unbind | |
| • mount-umount: | mount-umount | |
| • deliver: | deliver | |
| • audit: | audit |
# /etc/init.d/mediatexd start# /etc/init.d/mediatexd stop# /etc/init.d/mediatexd status# /etc/init.d/mediatexd reloadfrom ADMIN (see Who) to init.d (see init.d): start/stop the MEDIATEX daemon.
<cgiClt-get-query><cgiClt-post-query>from Apache (see Apache) to cgiClient (see cgiClient): USER’s HTTP forwarded query.
# bash -i /usr/share/mediatex/scripts/cron_hourly.sh# bash -i /usr/share/mediatex/scripts/cron_daily.sh# bash -i /usr/share/mediatex/scripts/cron_monthly.shfrom Cron (see Cron) to conrHourly-cronDaily (see cronHourly-cronDaily): scheduled tasks.
# /usr/share/mediatex/scripts/init.sh# /usr/share/mediatex/scripts/remove.sh# /usr/share/mediatex/scripts/purge.shfrom misc (see misc) to init-remove-purge (see init-remove-purge): initialise, remove and purge MEDIATEX software.
# /usr/share/mediatex/scripts/add-user.sh# /usr/share/mediatex/scripts/del-user.shfrom serv (see serv) to addUser-delUser (see addUser-delUser): manage PUBLISHER users.
# /usr/share/mediatex/scripts/new.sh# /usr/share/mediatex/scripts/free.shfrom conf (see conf) to new-free-clean (see new-free-clean): create/subscribe or destroy/unsubscribe a collection.
# /usr/share/mediatex/scripts/clean.shfrom misc (see misc) to new-free-clean (see new-free-clean): clean the local HTML catalogue.
$ /usr/share/mediatex/scripts/upgrade.sh$ /usr/share/mediatex/scripts/commit.sh$ /usr/share/mediatex/scripts/commit.sh$ /usr/share/mediatex/scripts/commit.shfrom CLIENT (see Client) to upgrade-commit-pull-push (see upgrade-commit-pull-push): manage GIT synchronisation.
# /usr/share/mediatex/scripts/bind.sh# /usr/share/mediatex/scripts/unbind.shfrom misc (see misc) to bind-unbind (see bind-unbind): manage collection repository binding on the chrooted jail for SSH remote access.
# /usr/share/mediatex/scripts/mount.sh# /usr/share/mediatex/scripts/umount.shfrom supp (see supp) to mount-umount (see mount-umount): manage mounting ISO devices.
$ /usr/share/mediatex/scripts/deliver.shfrom delivering (see delivering) to deliver (see deliver): manage archive availability notification.
$ /usr/share/mediatex/scripts/audit.shfrom delivering (see delivering) to audit (see audit): audit an archive.
Provide a BASH library.
# nohup mediatexd# kill -s TERM PID# kill -s HUP PIDfrom init.d (see init.d) or init-remove-purge (see init-remove-purge) to SERVER (see Server): standard UNIX process management (HUP signal for reload...).
# /etc/init.d/apache2 restartfrom init-remove-purge (see init-remove-purge) to Apache (see Apache): re-configure APACHE.
# /etc/init.d/apache2 reloadfrom new-free-clean (see new-free-clean) to Apache (see Apache): make APACHE aware of changes into its configuration.
<cgiSrv-query>from cgiClient (see cgiClient) to cgiServer (see cgiServer): socket query asking for an archive.
$ git init --bare$ git configfrom init-remove-purge (see init-remove-purge) or new-free-clean (see new-free-clean) to Git (see Git): initialise a GIT repository.
$ git clonefrom new-free-clean (see new-free-clean) to Git (see Git): checkout a GIT collection module.
$ git config$ git commit$ git pull$ git pushfrom upgrade-commit-pull-push (see upgrade-commit-pull-push) to Git (see Git): synchronise a GIT module.
$ mailfrom deliver (see deliver) or audit (see audit) to Sendmail (see Exim): send a mail.
$ mediatex upload[+] [file file [as target]]* [catalog file] [rules file] to coll collfrom conrHourly-cronDaily (see cronHourly-cronDaily) or audit (see audit) to uploadClient (see uploadClient): upload an incoming archive into the cache.
$ mediatex srv extract$ mediatex srv notify$ mediatex make [coll coll]$ mediatex motdfrom conrHourly-cronDaily (see cronHourly-cronDaily) respectively to CLIENT (see Client), misc (see misc) and motd (see motd): scheduled tasks.
(motd)from conrHourly-cronDaily (see cronHourly-cronDaily) to PUBLISHER (see Who): update the (above generated) message of the day.
To debug a script, you have to launch it using at least the MDTX environment variable:
# cd /usr/share/mediatex/scripts # MDTX_MDTXUSER=mdtx MDTX_LOG_SEVERITY_SCRIPT=debug ./bind.sh
Codes:
Next: Client, Previous: Tools, Up: Conceptual model [Contents][Index]