Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

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).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/installcrontab.md

On this page

This page is a translation. Read the English original

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 --help

Hilfetext

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 --apply

Optionen

OptionWertHilfe
--applyMit --add oder --remove: die Crontab schreiben (Standard zeigt, was sich ändern würde)
--dry-runDer Standard, beibehalten für Skripte, die die Option übergeben: zeigen, was sich ändern würde, nichts ändern
--showDie geplanten Zeilen, der Block in der Crontab und die letzten Läufe (der Standard)
--addDen Block hinzufügen oder aktualisieren
--removeDen Block entfernen
--admin-siteaccesserforderlichDer 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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x