systemd: bring some socket awareness especially to aminda-nocron-reboot.service

This commit is contained in:
Aminda Suomalainen 2025-07-11 10:11:25 +03:00
parent 6a47603594
commit fdeeaa3963
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
2 changed files with 5 additions and 4 deletions

View File

@ -55,8 +55,9 @@ ExecStart=-firewall-cmd --permanent --add-port=6771/udp --zone=home
#ExecStart=-/root/fixcontroller.py
# This is actually in the delayed variant of this service, but anyway
ExecStart=-systemctl enable --now yggdrasil.service
ExecStart=-systemctl enable --now ssh.service
ExecStart=-systemctl enable --now sshd.service
ExecStart=-systemctl enable --now avahi-daemon.socket
ExecStart=-systemctl enable --now ssh.socket
ExecStart=-systemctl enable --now sshd.socket
ExecStart=-systemctl enable --now sshguard.service
ExecStart=-systemctl enable --now unbound.service
ExecStart=-systemctl enable --now chrony.service

View File

@ -10,11 +10,11 @@ systemctl enable tlp.service
# Stop the services if they are running
systemctl disable --quiet --now power-profiles-daemon.service
systemctl disable --quiet --now systemd-rfkill.service
systemctl disable --quiet --now systemd-rfkill.{service,socket}
# Actual masking
systemctl mask power-profiles-daemon.service
systemctl mask systemd-rfkill.service systemd-rfkill.socket
systemctl mask systemd-rfkill.service systemd-rfkill.{service,socket}
# In case this script is ran multiple times in succession like when I did
# when writing it