Update python3-validity-suspend-restart.service
Systemd uses additional target corelated to resume - suspend-then-hibernate.target
This commit is contained in:
parent
64438d613a
commit
151a076d8c
1 changed files with 2 additions and 3 deletions
|
|
@ -1,11 +1,10 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Restart python-validity after resume
|
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]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/bin/systemctl --no-block restart python3-validity.service
|
ExecStart=/bin/systemctl --no-block restart python3-validity.service
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=suspend.target hibernate.target hybrid-sleep.target
|
WantedBy=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue