shell-things/etc/systemd/system/aminda-nocron-rebootish.service

27 lines
926 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Aminda's cronless tasks to do a bit after booting
[Service]
Type=oneshot
TimeoutStartSec=infinity
2024-10-04 12:21:21 +02:00
# Remember `systemd-path search-binaries-default`
# - means it can fail, without failing those after it
# Another attempt at ensuring Yggdrasil works with nordvpnd
2024-10-04 12:21:21 +02:00
ExecStartPre=-systemctl enable --now aminda-nocron-reboot.service
ExecStartPre=-systemctl enable --now aminda-nocron-reboot.timer
ExecStartPre=-systemctl enable --now monthly-btrfs-balance.timer
ExecStartPre=-sysctl net.ipv6.conf.all.disable_ipv6=0
ExecStartPre=-systemctl enable --now tlp
ExecStart=-systemctl restart yggdrasil.service
ExecStart=-firewall-cmd --reload
# If they somehow managed to not start already
2024-10-04 12:21:21 +02:00
ExecStart=-systemctl enable --now unbound.service
ExecStart=-systemctl enable --now systemd-resolved.service
ExecStart=-tlp setcharge
User=root
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target