Update python3-validity-suspend-restart.service

Systemd uses additional target corelated to resume - suspend-then-hibernate.target
This commit is contained in:
alteriks 2020-08-18 21:54:42 +02:00 committed by GitHub
parent 64438d613a
commit 151a076d8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,10 @@
[Unit]
Description=Restart python-validity after resume
After=suspend.target hibernate.target hybrid-sleep.target
After=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
[Service]
Type=simple
ExecStart=/bin/systemctl --no-block restart python3-validity.service
[Install]
WantedBy=suspend.target hibernate.target hybrid-sleep.target
WantedBy=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target