File: cron.d

package info (click to toggle)
systraq 20201231-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,172 kB
  • sloc: sh: 821; makefile: 130
file content (20 lines) | stat: -rw-r--r-- 1,013 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# /etc/cron.d/systraq - cronjob for systraq jobs
#
# This PATH is useful if you've used a non-standard bindir during ./configure
PATH=/usr/sbin:/usr/bin:/sbin:/bin
#
# m h dom mon dow usercommand
#
# run filetraq every hour at :30.
30 * * * *   debian-systraq  [ -r /etc/systraq/filetraq.conf ] && command -v filetraq >/dev/null && filetraq /etc/systraq/filetraq.conf /var/lib/systraq/filetraq
#
# clean up filetraq backup files older than two months
@monthly     debian-systraq  [ -d /var/lib/systraq/filetraq ] && find /var/lib/systraq/filetraq -type f -name "*.??.??__??.??" -ctime +60 -exec rm \{\} \;
#
# sent the weekly systraq email
@weekly       debian-systraq  command -v systraq >/dev/null && systraq | mailx -s "[Systraq] `hostname` `date +\%Y\%m\%d`" debian-systraq
#
# update the systraq status files
0 * * * *    debian-systraq  command -v st_snapshot.hourly >/dev/null && st_snapshot.hourly
0 * * * *    root            command -v st_snapshot.hourly >/dev/null && ST_MODE=root st_snapshot.hourly
#