From 70b7380e8f20b4859805062bc8c34e00ef499518 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 23 Jul 2024 17:29:53 +0300 Subject: [PATCH] aminda-nocron: ensure at least one of these runs sometime --- etc/systemd/system/aminda-nocron-reboot.service | 6 ++++-- etc/systemd/system/aminda-nocron-rebootish.service | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/etc/systemd/system/aminda-nocron-reboot.service b/etc/systemd/system/aminda-nocron-reboot.service index c699df49..8f40a3a3 100644 --- a/etc/systemd/system/aminda-nocron-reboot.service +++ b/etc/systemd/system/aminda-nocron-reboot.service @@ -5,8 +5,10 @@ Wants=sysctl-p--system.service [Service] Type=oneshot TimeoutStartSec=infinity -# - means it can fail, without failing those after it -# I always want DNS. +# - means it can fail, without failing those after it. +# These aren't given --now as THEY WOULD INFINITE LOOP. +ExecStartPre=-/usr/bin/systemctl enable aminda-nocron-rebootish.service +ExecStartPre=-/usr/bin/systemctl enable aminda-nocron-rebootish.timer ExecStartPre=-/usr/bin/systemctl enable --now unbound.service ExecStartPre=-/usr/bin/systemctl enable --now systemd-resolved.service ExecStartPre=-/usr/sbin/sysctl net.ipv6.conf.all.disable_ipv6=0 diff --git a/etc/systemd/system/aminda-nocron-rebootish.service b/etc/systemd/system/aminda-nocron-rebootish.service index 71811c53..bd6c333c 100644 --- a/etc/systemd/system/aminda-nocron-rebootish.service +++ b/etc/systemd/system/aminda-nocron-rebootish.service @@ -6,6 +6,8 @@ Type=oneshot TimeoutStartSec=infinity # - means it can fail, without failing those after it # Another attempt at ensuring Yggdrasil works with nordvpnd +ExecStartPre=-/usr/bin/systemctl enable --now aminda-nocron-reboot.service +ExecStartPre=-/usr/bin/systemctl enable --now aminda-nocron-reboot.timer ExecStartPre=-/usr/sbin/sysctl net.ipv6.conf.all.disable_ipv6=0 ExecStartPre=-/usr/bin/systemctl enable --now tlp ExecStart=-/usr/bin/systemctl restart yggdrasil.service