Next: Server, Previous: Scripts, Up: Conceptual model [Contents][Index]
CLIENT is the front-end for the MEDIATEX system.
It runs as setuid root
so as to switch between the different
collection contents, but also to do some administrative works such
as mounting and binding directories, create new system accounts...
Before performing any collection works, CLIENT update
the meta-data using Git (see Git). And before leaving, it commit
modifications performed into the configuration and meta-data files.
There is 2 ways CLIENT use to communicate with SERVER:
The CLIENT activity is divided into 6 process:
• conf: | conf | |
• supp: | supp | |
• serv: | serv | |
• misc: | misc | |
• uploadClient: | uploadClient | |
• motd: | motd |
Flood diagram:
# mediatex adm init
# mediatex adm remove
# mediatex adm purge
# mediatex adm add user user
# mediatex adm del user user
from ADMIN (see Who) to misc (see misc): configure the MEDIATEX system.
# mediatex adm add coll [serv-]coll[@host[:port]]
# mediatex adm del coll coll
from ADMIN to conf (see conf): configure collections.
$ mediatex add key file to coll coll
$ mediatex del key fingerprint from coll coll
$ mediatex upgrade[+] [coll coll]
from PUBLISHER to serv (see serv): manage collection settings.
$ mediatex ls [master] coll
$ mediatex add supp supp to (all|coll coll)
$ mediatex del supp supp from (all|coll coll)
from PUBLISHER to conf (see conf): list collections ; share/withdraw local supports to collections.
$ mediatex ls supp
$ mediatex add supp supp on path
$ mediatex add file path
$ mediatex del supp supp
$ mediatex note supp supp as text
$ mediatex check supp supp on file
from PUBLISHER (see Who) to supp (see supp): manage local supports.
$ mediatex upload[+] [file file [as target]]* [catalog file] [rules file] to coll coll
from PUBLISHER, Syslog (see Syslog), conrHourly-cronDaily (see cronHourly-cronDaily) or audit (see audit) to uploadClient (see uploadClient): upload an incoming archive into the cache.
$ mediatex make [coll coll]
$ mediatex clean [coll coll]
$ mediatex su [coll coll]
$ mediatex audit for mail coll coll
from PUBLISHER to misc (see misc): build/clean the HTML catalogue ; change to server or collection system user ; simulate retrieving all archives.
$ mediatex srv save
$ mediatex srv [quick] scan
$ mediatex srv trim
$ mediatex srv clean
$ mediatex srv purge
$ mediatex srv status
from PUBLISHER to SERVER (see Server): repectively ask SERVER (see Server) to dump its state into disk, to manage cache contents or to log its memory status.
$ mediatex srv extract
$ mediatex srv notify
from PUBLISHER or conrHourly-cronDaily (see cronHourly-cronDaily) to SERVER (see Server): repectively ask SERVER to perform extractions or to communicate its state to other servers.
$ mediatex motd
from conrHourly-cronDaily (see cronHourly-cronDaily) to motd (see motd): build the message of the day (actions PUBLISHER have to perform).
$ mediatex adm bind
$ mediatex adm unbind
from SERVER (see Server) to misc (see misc): manage collection repository binding on the chrooted jail for SSH remote access.
$ mediatex adm get path as coll on path
from extract (see extract) to misc (see misc): retrieve a remote collection’s file via SSH.
$ mediatex adm mount iso on path
$ mediatex adm umount path
from extract (see extract) to supp (see supp): manage mounting ISO devices.
# /usr/share/mediatex/scripts/init.sh
# /usr/share/mediatex/scripts/remove.sh
# /usr/share/mediatex/scripts/purge.sh
from misc (see misc) to init-remove-purge (see init-remove-purge): start/stop the MEDIATEX daemon.
# /usr/share/mediatex/scripts/new.sh
# /usr/share/mediatex/scripts/free.sh
from conf (see conf) to new-free-clean (see new-free-clean): create/subscribe or destroy/unsubscribe a collection.
# /usr/share/mediatex/scripts/clean.sh
from misc (see misc) to new-free-clean (see new-free-clean): clean the local HTML catalogue.
# /usr/share/mediatex/scripts/mount.sh
# /usr/share/mediatex/scripts/umount.sh
from supp (see supp) to mount-umount (see mount-umount): manage mounting ISO devices.
# /usr/share/mediatex/scripts/add-user.sh
# /usr/share/mediatex/scripts/del-user.sh
from misc (see misc) to addUser-delUser (see addUser-delUser): manage PUBLISHER users.
$ /usr/share/mediatex/scripts/commit.sh
$ /usr/share/mediatex/scripts/commit.sh
from serv (see serv) to upgrade-commit-pull-push (see upgrade-commit-pull-push): manage GIT synchronisation.
$ scp
from misc (see misc) to Ssh (see Ssh): copy file from one remote server’s cache.
[save]
[extract]
[notify]
from CLIENT (see Client) to SERVER (see Server): wrap the queries to SERVER.
<have>
from supp (see supp) to have (see have): tells SERVER a support is now available.
<upload>
from misc (see misc) to cache (see cache): ask SERVER to upload an incoming archive into its cache.
Code:
Next: Server, Previous: Scripts, Up: Conceptual model [Contents][Index]