Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

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

Open
wzx1996 opened this issue Nov 16, 2017 · 3 comments

Comments

@wzx1996
Copy link

wzx1996 commented Nov 16, 2017

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?

@w1ndy
Copy link
Contributor

w1ndy commented Nov 30, 2017

Perhaps this can be implemented with QtDaemon.

@sgww2
Copy link

sgww2 commented Mar 19, 2018

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

@librehat
Copy link
Contributor

librehat commented Apr 8, 2018

@sgww2 I would like to see a PR :)

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

No branches or pull requests

4 participants