libQtShadowsocks icon indicating copy to clipboard operation
libQtShadowsocks copied to clipboard

[feature request] adding launch parameter to daemonize libqss so that it can be run as a service

Open wzx1996 opened this issue 8 years ago • 3 comments

The only reason I choose to use this rather than C# version is to run a SS client on a server (and then allows other computers to access the proxy without a SS client). However, this version of SS has to run in interactive mode, and thus I can't install it as a service (Windows would consider that this "service" has never completed the starting up).

Linux server isn't an option so no "screen" program available (plus "screen" also isn't the best solution in this case). I don't want to enable startup program feature (since it's a server not a workstation), nor do I want to use a probably proprietary 3rd-party daemonizing program to do the job.

My only solution for now is to run the program as a never-ending scheduled task that is triggered on system startup, which isn't the best solution since it will not automatically restart after crashes.

So, would anyone implementing the feature that, when the program is run with "--service" parameter, it will run in background rather than occupying the terminal, so that daemonizing this program (run it as a Windows or Linux service) become possible?

wzx1996 avatar Nov 16 '17 00:11 wzx1996

Perhaps this can be implemented with QtDaemon.

w1ndy avatar Nov 30 '17 05:11 w1ndy

Guess you can look this fork https://github.com/cristeab/libQtShadowsocks

sgww2 avatar Mar 19 '18 21:03 sgww2

@sgww2 I would like to see a PR :)

librehat avatar Apr 08 '18 21:04 librehat