systemd: add user units nordvpn-off.{service,timer}

This commit is contained in:
Aminda Suomalainen 2024-07-23 17:17:18 +03:00
parent ee8720a71b
commit b3e2989c19
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,6 @@
[Unit]
Description=Disconnect and disable NordVPN on user systemd start
[Service]
Type=oneshot
ExecStart=/usr/local/bin/nordvpn-off

View File

@ -0,0 +1,11 @@
[Unit]
Description=Turn off NordVPN on login
[Timer]
OnUnitActiveSec=1
OnBootSec=2
RandomizedDelaySec=3
Persistent=true
[Install]
WantedBy=timers.target