Question: I started a VPN connection with `sudo openvpn --daemon --config connection.ovpn`. Is there a way to terminate this connection without using `ps` to search for the process and then `kill` it myself?

Answer: 
From <https://openvpn.net/community-resources/how-to/>

Controlling a running OpenVPN processRunning on Linux/BSD/Unix

OpenVPN accepts several signals:

```
SIGUSR1 — Conditional restart, designed to restart without root privileges
SIGHUP — Hard restart
SIGUSR2 — Output connection statistics to log file or syslog
SIGTERM, SIGINT — Exit

```

Use the writepid directive to write the OpenVPN daemon’s PID to a file, so that you know where to send the signal (if you are starting openvpn with an initscript, the script may already be passing a –writepid directive on the openvpn command line).

So , you should use kill command, and start openvpn with arg -writepid.
```
sudo openvpn3 session-manage --disconnect --config $'client'.ovpn

```

Replace client with the corresponding name.
This will shutdown the session.