shell-things/etc/systemd/system/aminda-nocron-rebootish.service
Aminda Suomalainen a62664de3e
aminda-nocron-rebootish.service: add tlp setcharge
As apparently fullcharge isn't reverted by reboot itself
2024-07-12 12:51:55 +03:00

21 lines
654 B
Desktop File

[Unit]
Description=Aminda's cronless tasks to do a bit after booting
[Service]
Type=oneshot
TimeoutStartSec=infinity
# - means it can fail, without failing those after it
# Another attempt at ensuring Yggdrasil works with nordvpnd
ExecStartPre=-/usr/sbin/sysctl net.ipv6.conf.all.disable_ipv6=0
ExecStart=-/usr/bin/systemctl restart yggdrasil.service
# If they somehow managed to not start already
ExecStart=-/usr/bin/systemctl enable --now unbound.service
ExecStart=-/usr/bin/systemctl enable --now systemd-resolved.service
ExecStart=-/usr/sbin/tlp setcharge
User=root
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target