aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAstound <kirito@disroot.org>2023-12-26 01:23:16 +0800
committerAstound <kirito@disroot.org>2023-12-26 01:23:16 +0800
commit13531a896a2e734166994eb560c8bc4c03289f40 (patch)
tree2e909c10f0d19a9b21923def9c8518919151f571
parent4bc9f63ad8b9c2a2d6736ee2dcaceadd7aa1f66c (diff)
downloadbook-13531a896a2e734166994eb560c8bc4c03289f40.tar.lz
book-13531a896a2e734166994eb560c8bc4c03289f40.tar.xz
book-13531a896a2e734166994eb560c8bc4c03289f40.zip
wsl: update
-rw-r--r--wsl/README.md19
1 files changed, 3 insertions, 16 deletions
diff --git a/wsl/README.md b/wsl/README.md
index fd971bb..f45695c 100644
--- a/wsl/README.md
+++ b/wsl/README.md
@@ -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
name="vpn-dns"
description="VPN DNS Configuration"
-pidfile="/var/run/vpn-dns.pid"
command="/bin/vpn-dns"
depend() {
@@ -60,21 +59,9 @@ depend() {
}
start() {
- ebegin "Starting ${name}"
- start-stop-daemon --start --exec "${command}" --pidfile "${pidfile}"
- eend $?
-}
-
-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 $?
+ ebegin "Starting VPN DNS Configuration"
+ "${command}"
+ eend $? "Failed to start VPN DNS Configuration"
}
```