wireproxy icon indicating copy to clipboard operation
wireproxy copied to clipboard

please add feature to restart or stop own process

Open tsz8899 opened this issue 1 year ago • 3 comments

When the program is running in daemon mode wireproxy -d -c config1 , how to stop or restart

Could add the feature to restart or stop the process after the program runs in daemon mode?

For example, in the Windows or linux command line, support: wireproxy -d --reload -c config2 wireproxy -d --stop wireproxy -d -restart

tsz8899 avatar Apr 09 '24 04:04 tsz8899

Currently there is no option to stop or restart wireproxy except killing it externally. I don't see how wireproxy -d --stop would work with multiple wireproxy daemon running on the same host.

whyvl avatar Apr 09 '24 18:04 whyvl

thank you help.

wireproxy runs well. But I can't stop or restart with simple commands. For example,making it difficult to schedule tasks using scripts (1.wireproxy start, 2.download remote files, 3.wireproxy stop). It's hard for me to do such operations on a Windows or linux command line.

It would be great if wireproxy have its own process stop and restart functionality.

tsz8899 avatar Apr 10 '24 08:04 tsz8899

thank you help.

wireproxy runs well. But I can't stop or restart with simple commands. For example,making it difficult to schedule tasks using scripts (1.wireproxy start, 2.download remote files, 3.wireproxy stop). It's hard for me to do such operations on a Windows or linux command line.

It would be great if wireproxy have its own process stop and restart functionality.

can you try adding a script like this to your scheduler? it would indiscriminately kill all instances.

kill_wireproxy.sh

#!/bin/bash
if pgrep -x "wireproxy" > /dev/null
then
    pkill wireproxy
fi

cadraincm avatar May 14 '24 03:05 cadraincm