Guest User

Untitled

a guest
Jan 17th, 2022
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. [Unit]
  2. Description=Wipe PAM timestamps on sleep
  3. Before=hibernate.target hybrid-sleep.target suspend-then-hibernate.target sleep.target
  4. StopWhenUnneeded=true
  5.  
  6. [Service]
  7. Type=oneshot
  8. RemainAfterExit=yes
  9. Environment="TIMESTAMP_PATH=/var/run/pam_timestamp"
  10.  
  11. ExecStart=/bin/sh -c 'rm -rf $TIMESTAMP_PATH/*'
  12.  
  13. [Install]
  14. WantedBy=hibernate.target hybrid-sleep.target suspend-then-hibernate.target sleep.target
Advertisement
Add Comment
Please, Sign In to add comment