wsl: update
This commit is contained in:
parent
4bc9f63ad8
commit
13531a896a
@ -52,7 +52,6 @@ Save file into /etc/init.d/vpn-dns with 755 permissions
|
|||||||
# Distributed under the terms of the GNU General Public License v3 or later
|
# Distributed under the terms of the GNU General Public License v3 or later
|
||||||
name="vpn-dns"
|
name="vpn-dns"
|
||||||
description="VPN DNS Configuration"
|
description="VPN DNS Configuration"
|
||||||
pidfile="/var/run/vpn-dns.pid"
|
|
||||||
command="/bin/vpn-dns"
|
command="/bin/vpn-dns"
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
@ -60,21 +59,9 @@ depend() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting ${name}"
|
ebegin "Starting VPN DNS Configuration"
|
||||||
start-stop-daemon --start --exec "${command}" --pidfile "${pidfile}"
|
"${command}"
|
||||||
eend $?
|
eend $? "Failed to start VPN DNS Configuration"
|
||||||
}
|
|
||||||
|
|
||||||
reload() {
|
|
||||||
ebegin "Reloading ${name}"
|
|
||||||
start-stop-daemon --signal HUP --pidfile "${pidfile}"
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping ${name}"
|
|
||||||
start-stop-daemon --quiet --stop --exec "${command}" --pidfile "${pidfile}"
|
|
||||||
eend $?
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user