summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/tunneld/main.go2
-rw-r--r--init/tunnel.service1
2 files changed, 2 insertions, 1 deletions
diff --git a/cmd/tunneld/main.go b/cmd/tunneld/main.go
index e56dd12..a0c0e03 100644
--- a/cmd/tunneld/main.go
+++ b/cmd/tunneld/main.go
@@ -227,7 +227,7 @@ func configure(s *server.Server) error {
}
func deconfigure(s *server.Server) error {
- return runCommand(s, "cmd.down")
+ return runCommand(s, "cmd.fini")
}
func main() {
diff --git a/init/tunnel.service b/init/tunnel.service
index f0c5c9a..d6ae002 100644
--- a/init/tunnel.service
+++ b/init/tunnel.service
@@ -4,6 +4,7 @@ After=network.target
[Service]
ExecStart=tunneld
+KillMode=process
[Install]
WantedBy=multi-user.target