exp:installcrontab
Den Cronjob der Installation zeigen, hinzufügen oder entfernen: die Crontab-Zeilen, die ihre Cronjob-Teile ausführen (--add und --remove: Probelauf, außer mit --apply).
Skript bin/php/installcrontab.php, Code in kernel/private/classes/commands/installcrontab.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:
./console exp:installcrontab --help
php bin/php/installcrontab.php --helpHilfetext
Was --help ausgibt, so wie der Befehl es schreibt:
Show, add or remove the cron job of this installation: the crontab lines that run its cronjob
parts (runcronjobs.php) with the PHP binary and the siteaccess each needs, in the crontab of the
system user that owns the installation directory, between the lines
"# BEGIN Exponential cronjobs: <root>" and "# END Exponential cronjobs: <root>".
The parts are cronjob.ini [CrontabSettings] Parts[] that the installation defines (an extension's
when it is active), the schedules [AdminSettings] CrontabSchedule_<part>. --add replaces the block
or appends it and keeps every other line; a part another line of the crontab runs already is left
out. Run it as the owner of the installation or as root (crontab -u <owner>); otherwise, or without a
crontab command, it prints the lines to add by hand. Prints PASS or FAIL at the end.
--add and --remove change nothing without --apply: they show the block and the lines of the crontab
that would change. --dry-run is still accepted and means the same as no flag; --apply together with
--dry-run is a usage error (exit 2).
Example: php bin/php/installcrontab.php --show
php bin/php/installcrontab.php --add
php bin/php/installcrontab.php --add --apply
php bin/php/installcrontab.php --remove --applyOptionen
| Option | Wert | Hilfe |
|---|---|---|
--apply | Mit --add oder --remove: die Crontab schreiben (Standard zeigt, was sich ändern würde) | |
--dry-run | Der Standard, beibehalten für Skripte, die die Option übergeben: zeigen, was sich ändern würde, nichts ändern | |
--show | Die geplanten Zeilen, der Block in der Crontab und die letzten Läufe (der Standard) | |
--add | Den Block hinzufügen oder aktualisieren | |
--remove | Den Block entfernen | |
--admin-siteaccess | erforderlich | Der Siteaccess der Admin-Teile (Standard: [CrontabSettings] AdminSiteAccess, sonst admin) |
Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Siehe auch
Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/installcrontab.php, kernel/private/classes/commands/installcrontab.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.