Add gp-suspend.service

This commit is contained in:
Kevin Yue
2024-03-27 09:19:08 -04:00
parent 187ca778f2
commit e602b3b018
10 changed files with 157 additions and 10 deletions

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Disconnect from the VPN when suspending
Before=sleep.target
[Service]
Type=oneshot
ExecStart=/usr/bin/gpclient disconnect
[Install]
WantedBy=sleep.target