root / doc / examples / ganeti.cron.in @ 7e65c12c
History | View | Annotate | Download (560 Bytes)
1 |
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin |
---|---|
2 |
|
3 |
# On reboot, continue a Ganeti upgrade, if one was in progress |
4 |
@reboot root @SBINDIR@/gnt-cluster upgrade --resume |
5 |
|
6 |
# Restart failed instances (every 5 minutes) |
7 |
*/5 * * * * root [ -x @SBINDIR@/ganeti-watcher ] && @SBINDIR@/ganeti-watcher |
8 |
|
9 |
# Clean job archive (at 01:45 AM) |
10 |
45 1 * * * @GNTMASTERUSER@ [ -x @SBINDIR@/ganeti-cleaner ] && @SBINDIR@/ganeti-cleaner master |
11 |
|
12 |
# Clean job archive (at 02:45 AM) |
13 |
45 2 * * * @GNTNODEDUSER@ [ -x @SBINDIR@/ganeti-cleaner ] && @SBINDIR@/ganeti-cleaner node |