mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-21 18:59:22 +01:00
systemd: add user units nordvpn-off.{service,timer}
This commit is contained in:
parent
ee8720a71b
commit
b3e2989c19
6
etc/systemd/user/nordvpn-off.service
Normal file
6
etc/systemd/user/nordvpn-off.service
Normal file
@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Disconnect and disable NordVPN on user systemd start
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/nordvpn-off
|
11
etc/systemd/user/nordvpn-off.timer
Normal file
11
etc/systemd/user/nordvpn-off.timer
Normal 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
|
Loading…
Reference in New Issue
Block a user