mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-03-29 14:09:58 +00:00
14 lines
338 B
Bash
Executable File
14 lines
338 B
Bash
Executable File
#!/bin/bash
|
|
|
|
case "$2" in
|
|
up)
|
|
/usr/bin/systemctl is-active doh-client.service > /dev/null && /usr/bin/systemctl restart doh-client.service
|
|
;;
|
|
down)
|
|
/usr/bin/systemctl is-active doh-client.service > /dev/null && /usr/bin/systemctl restart doh-client.service
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|