You are not logged in.
Is there a systemd-native method to have a running service restart when the machine resumes from suspend? I am not seeing anything in the man pages and finding references to having a separate service call systemctl to restart bit that just feels a bit hacky. For example:
# cat /usr/lib/systemd/system/kodi-gbm-restart-on-resume.service
[Unit]
Description=Restart Service After Suspend
After=suspend.target network-online.target
[Service]
Type=oneshot
ExecStart=/bin/systemctl restart kodi-gbm.service
[Install]
WantedBy=suspend.target
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Does Combined sleep/resume unit not work in your case?
Online
I did not see that section of the wiki. I will explore it, thank you.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline