Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please add feature to restart or stop own process #106

Open
tsz8899 opened this issue Apr 9, 2024 · 3 comments
Open

please add feature to restart or stop own process #106

tsz8899 opened this issue Apr 9, 2024 · 3 comments

Comments

@tsz8899
Copy link

tsz8899 commented Apr 9, 2024

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

@pufferffish
Copy link
Owner

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.

@tsz8899
Copy link
Author

tsz8899 commented Apr 10, 2024

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 tsz8899 changed the title please add feature to restart or stop in daemon mode please add feature to restart or stop own process Apr 10, 2024
@cadraincm
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants