"service wireguard restart" leaves behind the old process. is this expected?

i've got wireguard working well enough on 14.0 and "restart" has the effect of starting a new wg process using any updated config but "ps" shows that for every "restart", the old wg-quick proc is still there. what's up w/that? anybody know? i've tried "stop" and then "start" instead of "restart" and it has the same behavior.
thnx in advance.
 
Don't use wireguard but restarting it shouldn't leave old processes running. A restart is a stop followed by a start. The 'stopping' should remove any of the running processes. This is different from a 'reload' which is sometimes possible. A reload won't stop/start the processes, it will simply trigger the service to re-read its configuration files.
 
I can confirm. I see the same thing. stop destroys the network interface but the process is still running. Probably worth reporting it to the maintainer of the wg-tools port. I stopped using wireguard on FreeBSD and moved it to my router though.
 
Back
Top