summaryrefslogtreecommitdiffstats
path: root/services/netctl-sleep.service
blob: 301dc366efd9d0a8c347d278a1bc24fd59ed7925 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=netctl sleep hook
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/netctl store ; /usr/bin/netctl stop-all
ExecStop=-/usr/bin/netctl restore

[Install]
WantedBy=sleep.target