etc/systemd
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Daily apt upgrade and clean activities
|
||||
After=apt-daily.timer
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 6:00
|
||||
RandomizedDelaySec=60m
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
10
etc/systemd/system/timers.target.wants/apt-daily.timer
Normal file
10
etc/systemd/system/timers.target.wants/apt-daily.timer
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Daily apt download activities
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 6,18:00
|
||||
RandomizedDelaySec=12h
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
10
etc/systemd/system/timers.target.wants/dpkg-db-backup.timer
Normal file
10
etc/systemd/system/timers.target.wants/dpkg-db-backup.timer
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Daily dpkg database backup timer
|
||||
Documentation=man:dpkg(1)
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
11
etc/systemd/system/timers.target.wants/e2scrub_all.timer
Normal file
11
etc/systemd/system/timers.target.wants/e2scrub_all.timer
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Periodic ext4 Online Metadata Check for All Filesystems
|
||||
|
||||
[Timer]
|
||||
# Run on Sunday at 3:10am, to avoid running afoul of DST changes
|
||||
OnCalendar=Sun *-*-* 03:10:00
|
||||
RandomizedDelaySec=60
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
14
etc/systemd/system/timers.target.wants/fstrim.timer
Normal file
14
etc/systemd/system/timers.target.wants/fstrim.timer
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Discard unused filesystem blocks once a week
|
||||
Documentation=man:fstrim
|
||||
ConditionVirtualization=!container
|
||||
ConditionPathExists=!/etc/initrd-release
|
||||
|
||||
[Timer]
|
||||
OnCalendar=weekly
|
||||
AccuracySec=1h
|
||||
Persistent=true
|
||||
RandomizedDelaySec=100min
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
11
etc/systemd/system/timers.target.wants/logrotate.timer
Normal file
11
etc/systemd/system/timers.target.wants/logrotate.timer
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Daily rotation of log files
|
||||
Documentation=man:logrotate(8) man:logrotate.conf(5)
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
RandomizedDelaySec=1h
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Clean PHP session files every 30 mins
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* *:09,39:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user