Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 7182  / 2 Years ago, sat, april 23, 2022, 3:14:15

I command something like this : sudo openconnect -b serverName for connect to vpn but when i want to disconnect it , the process does not kill and its alive in background.


I used these commands for disconnecting but they did not work for me in ubuntu 20.10 :


1-sudo killall openconnect


2-use ctrl + c


More From » networking

 Answers
3

You can use something more powerful like kill -9.


First find out PID number like so:


pgrep openconnect
12345

After that, kill the process with: sudo kill -9 12345.


One liner can also be used


kill -9 `pgrep openconnect`

[#1712] Monday, April 25, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
splenueak

Total Points: 448
Total Questions: 118
Total Answers: 110

Location: Vanuatu
Member since Mon, Oct 3, 2022
2 Years ago
;