diff --git a/docs/admin-guide/administration/schedule_tasks.md b/docs/admin-guide/administration/schedule_tasks.md new file mode 100644 index 00000000..69a47507 --- /dev/null +++ b/docs/admin-guide/administration/schedule_tasks.md @@ -0,0 +1,20 @@ +# Schedule (One-time) Tasks + +Sometimes you may want to schedule a one-time task to be executed at a specific time. This can be done using the `systemd-run` command. + +For example, to schedule a one-time reboot (e.g. to apply kernel patches) to the system at 4:00 AM on July 15, 2026, you can use the following command: + +```bash +systemd-run --on-calendar="2026-07-15 04:00:00" --unit=onetime-reboot reboot +``` + +One-time timers configured like this are ephemeral/transient and will not stay in any configuration after the task has been executed. If the system happens to be off at the scheduled time, the job won't fire (it's not like anacron, which catches up missed jobs) — and after a reboot, transient systemd-run timers won't survive anyway since the system reset! + + +To list the configured timers you can use the following command: + +```bash +systemctl list-timers +``` + + diff --git a/docs/admin-guide/virtual_machines.md b/docs/admin-guide/deployment/virtual_machines.md similarity index 100% rename from docs/admin-guide/virtual_machines.md rename to docs/admin-guide/deployment/virtual_machines.md diff --git a/docs/admin-guide/puppet/puppet_environments.md b/docs/admin-guide/puppet/puppet_environments.md index 5e3df3a2..ad943232 100644 --- a/docs/admin-guide/puppet/puppet_environments.md +++ b/docs/admin-guide/puppet/puppet_environments.md @@ -20,7 +20,8 @@ Whenever the git server receives a push a gitea-runner gets triggered on the pup Note: If branches are deleted on the git server the corresponding checkouts/environments on the puppet server will also be removed. (with some delay) To use/test the code changes via the puppet test environment use -``` + +```bash puppet agent -t --environment=issue_x ```