2024-02-28 15:40:39 +01:00
|
|
|
Autosysadmin "restart auto" scripts
|
|
|
|
===================================
|
|
|
|
|
|
|
|
In this directory you can place scripts that will be executed automatically by a cron job (stored in `/etc/cron.d/autosysadmin`).
|
|
|
|
|
2024-03-01 08:26:43 +01:00
|
|
|
They must satisfy the default `run-parts(8)` constraints :
|
2024-02-28 15:40:39 +01:00
|
|
|
|
|
|
|
* be "executable"
|
|
|
|
* belong to the Debian cron script namespace (`^[a-zA-Z0-9_-]+$`), example: `restart_amavis`
|
|
|
|
|
|
|
|
Warning: scripts that do not satisfy those criteria will NOT be run (silently)!
|
|
|
|
|
|
|
|
You can print the names of the scripts which would be run, without actually running them, with this command :
|
|
|
|
|
|
|
|
```
|
2024-02-29 19:16:18 +01:00
|
|
|
$ run-parts --test /usr/share/scripts/autosysadmin/restart
|
2024-02-28 15:40:39 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
You can use `zzz-restart_example.template` as boilerplate code to make your own "restart" script.
|