mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore: added cron article to the kb
This commit is contained in:
35
knowledge base/cron.md
Normal file
35
knowledge base/cron.md
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
# Title
|
||||||
|
|
||||||
|
## Table of contents <!-- omit in toc -->
|
||||||
|
|
||||||
|
1. [TL:DR](#tldr)
|
||||||
|
1. [Further readings](#further-readings)
|
||||||
|
1. [Sources](#sources)
|
||||||
|
|
||||||
|
## TL:DR
|
||||||
|
|
||||||
|
Files in `/etc/cron.hourly` and similar need to:
|
||||||
|
|
||||||
|
- be executable,
|
||||||
|
- match the Debian cron script namespace (`^[a-zA-Z0-9_-]+$`, so script **with an extension** won't work).
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# Print the names of the scripts which would be invoked.
|
||||||
|
sudo run-parts --report --test '/etc/cron.hourly'
|
||||||
|
```
|
||||||
|
|
||||||
|
## Further readings
|
||||||
|
|
||||||
|
## Sources
|
||||||
|
|
||||||
|
All the references in the [further readings] section, plus the following:
|
||||||
|
|
||||||
|
- [Function of /etc/cron.hourly]
|
||||||
|
|
||||||
|
<!-- project's references -->
|
||||||
|
|
||||||
|
<!-- internal references -->
|
||||||
|
[further readings]: #further-readings
|
||||||
|
|
||||||
|
<!-- external references -->
|
||||||
|
[Function of /etc/cron.hourly]: https://askubuntu.com/questions/7676/function-of-etc-cron-hourly#607974
|
||||||
Reference in New Issue
Block a user