parent
238794a80d
commit
0563edc0cc
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Backup Files
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Nice=19
|
||||
IOSchedulingClass=2
|
||||
IOSchedulingPriority=7
|
||||
ExecStart=/scr/local/backup-fileserver
|
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Backup Files
|
||||
|
||||
[Timer]
|
||||
OnCalendar=04:15:00
|
||||
AccuracySec=300s
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Beep When Console Ready
|
||||
DefaultDependencies=no
|
||||
After=getty@tty1.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/beep -f 880 -l 125 -r 3
|
||||
|
||||
[Install]
|
||||
WantedBy=getty.target
|
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Conflicts=dnsmasq.service
|
||||
After=network.target
|
||||
|
||||
[Socket]
|
||||
ListenDatagram=53
|
||||
ListenStream=53
|
||||
Accept=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Download Pacman Updates
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Nice=19
|
||||
IOSchedulingClass=2
|
||||
IOSchedulingPriority=7
|
||||
ExecStart=/usr/bin/pacman -Syuw --noconfirm
|
||||
ExecStart=/usr/bin/paccache -r
|
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Download Pacman Updates Semi-Daily
|
||||
|
||||
[Timer]
|
||||
OnCalendar=07,19:05:00
|
||||
AccuracySec=300s
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Umount PEK
|
||||
DefaultDependencies=no
|
||||
After=cryptsetup.target
|
||||
Before=zfs.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/umount /mnt/pek
|
||||
ExecStart=/usr/bin/beep -f 880 -l 125 -r 2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Update /etc/hosts from %I
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Nice=19
|
||||
IOSchedulingClass=2
|
||||
IOSchedulingPriority=7
|
||||
ExecStart=/usr/bin/ansible -i %I, -b -m fetch -a "src=/etc/hosts dest=/etc/hosts flat=yes" all
|
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Update /etc/hosts from %I
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*:35:00
|
||||
AccuracySec=300s
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Refresh Pacman Mirror List
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Nice=19
|
||||
IOSchedulingClass=2
|
||||
IOSchedulingPriority=7
|
||||
ExecStart=/usr/bin/reflector -p https -l 5 -c US --sort rate --save /etc/pacman.d/mirrorlist
|
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Update mirrorlists hourly
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*:00:00
|
||||
AccuracySec=300s
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Create ZFS Snaphot of %I
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/bin/sh -c '/sbin/zfs snapshot %I@$(/bin/date +%%Y-%%m-%%d_%%H-%%M-%%S)_auto'
|
Loading…
Reference in new issue