diff --git a/backup-files.service b/backup-files.service new file mode 100644 index 0000000..a39ba39 --- /dev/null +++ b/backup-files.service @@ -0,0 +1,9 @@ +[Unit] +Description=Backup Files + +[Service] +Type=simple +Nice=19 +IOSchedulingClass=2 +IOSchedulingPriority=7 +ExecStart=/scr/local/backup-fileserver diff --git a/backup-files.timer b/backup-files.timer new file mode 100644 index 0000000..903b331 --- /dev/null +++ b/backup-files.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Backup Files + +[Timer] +OnCalendar=04:15:00 +AccuracySec=300s +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/beep-after-getty.service b/beep-after-getty.service new file mode 100644 index 0000000..dee6ae5 --- /dev/null +++ b/beep-after-getty.service @@ -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 diff --git a/dnsmasq.socket b/dnsmasq.socket new file mode 100644 index 0000000..0cf75e1 --- /dev/null +++ b/dnsmasq.socket @@ -0,0 +1,11 @@ +[Unit] +Conflicts=dnsmasq.service +After=network.target + +[Socket] +ListenDatagram=53 +ListenStream=53 +Accept=yes + +[Install] +WantedBy=sockets.target diff --git a/get-pacman-updates.service b/get-pacman-updates.service new file mode 100644 index 0000000..29b104d --- /dev/null +++ b/get-pacman-updates.service @@ -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 diff --git a/get-pacman-updates.timer b/get-pacman-updates.timer new file mode 100644 index 0000000..8a685bd --- /dev/null +++ b/get-pacman-updates.timer @@ -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 diff --git a/umount-pek.service b/umount-pek.service new file mode 100644 index 0000000..75a668b --- /dev/null +++ b/umount-pek.service @@ -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 diff --git a/update-hosts@.service b/update-hosts@.service new file mode 100644 index 0000000..d641b9c --- /dev/null +++ b/update-hosts@.service @@ -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 diff --git a/update-hosts@.timer b/update-hosts@.timer new file mode 100644 index 0000000..456b70c --- /dev/null +++ b/update-hosts@.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Update /etc/hosts from %I + +[Timer] +OnCalendar=*:35:00 +AccuracySec=300s +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/update-reflector.service b/update-reflector.service new file mode 100644 index 0000000..0ca9704 --- /dev/null +++ b/update-reflector.service @@ -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 diff --git a/update-reflector.timer b/update-reflector.timer new file mode 100644 index 0000000..2a67d1d --- /dev/null +++ b/update-reflector.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Update mirrorlists hourly + +[Timer] +OnCalendar=*:00:00 +AccuracySec=300s +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/zfs-snapshot@.service b/zfs-snapshot@.service new file mode 100644 index 0000000..4b6ea89 --- /dev/null +++ b/zfs-snapshot@.service @@ -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'