-
Notifications
You must be signed in to change notification settings - Fork 41
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
Create and/or nominate an official solution for a Windows tray supervisor process #14
Comments
On the whole, I think I'm against this, in all likelihood. A better example to follow might be Apache's Win32 builds. They come with an Apache Monitor tray program, which controls the httpd. The httpd itself is a "console" application. ncdns is a daemon; service management (whether or not that "service" is managed by the WinNT "services" system or in any other way) is out of scope. Any such program could also be generic and capable of managing arbitrary services, which seems better than duplicating the code in every daemon which wants to be trayable in Windows. |
Well, I have no use for nor desire installing an httpd server, especially just to monitor ncdns. Nor do I believe the mass of computer users would want to either.Currently running ncdns as an on-demand daemon (which I am also trying to find a way to run it without having a terminal window open), not a system service (I try to keep to a minimal system). I may consider putting it as a "service" (once it reaches release status), but would still have a desire to have some way to easily know it is running, errored out, restart it, and exit it.OS: Arch Linux---- On Thu, 24 Nov 2016 23:16:58 -0800 Hugo Landau<notifications@github.com> wrote ----On the whole, I think I'm against this, in all likelihood. A better example to follow might be Apache's Win32 builds. They come with an Apache Monitor tray program, which controls the httpd. The httpd itself is a "console" application. ncdns is a daemon; service management (whether or not that "service" is managed by the WinNT "services" system or in any other way) is out of scope. —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
It's likely that for unrelated reasons ncdns will add an authenticated
JSON-RPC server (specifically for Tor stream isolation purposes). I
think it shouldn't be hard to make that server usable for this use
case, although it's not an incredibly high priority for me right now.
@hlandau can this issue be re-opened until we figure out what the
best way to address this use case is?
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJYOF9uAAoJELPy0WV4bWVwWN8P/2dKPxDHo+vo2rKdCOkdXuzB
dzvKCLEDqKzzLkUXFAG4gQkkNc9HZ41zYFfbkdPy8HNCVyX2rAGT+oQssJELqevS
wudAlJYFWkQXhL1/osqsvyjbF2CMbWEgmAVayITwBcgPPABU1oeWmnNYrAW+pwPK
UySAzXpzm3LdnF+XKM+IAEAH/ZtMuBLJFrQ4HGrM40GzDdh+XkuyEhDdYmIluwoY
WlWo1eUVrrMwMkECd56LLizy+T6xKXsxMoqWe+6IDa15vPqWP7K1QKULoioRlmmn
km25riPcysKXCVHgGiXEB9m8vqAVs1ZqP7Z09jrvWHNLMFwwSLQ16X9D2CK6rVKR
y4kTF188GURVAYECvQTpi56bSnjhb9+FH1cFfkEo0z1K/CGK7iPPSt7hN2FlR9f3
gx2qIxLRxNb+PI+aljDEbLaHbT0121ejrCJMG8HiGqBbgoVjPZnCSkv2boM8p2DS
hQj5UX0hl+yoA3yeshosGcbMSxs7GHuWXiZaHYgLT2p+xqRCI8y6IddVs+/goCxw
nZK65Gshnqp8H/5i3UH57+OrzByoZ3F7QXADX5LY7H+lk97SjVvlfhorlAYBB6t3
nh0GrlxMlKySxQwK9VzHD4zo3Mlk+d9PIoAholX8xm0NVrCHxmnXuG1PdCb59BGE
bTmWT/0dBXvSF7o7aqZp
=ZFSb
-----END PGP SIGNATURE-----
|
Yeah, definitely not a high priority, but a feature request. |
ApacheMonitor can't be used to monitor non-Apache processes. I wasn't advocating using ApacheMonitor to monitor ncdns, because that's impossible. I was saying that Win32 tray icon functionality should be in a separate process, not the daemon itself. The service implementation and service management should be in separate processes. @JeremyRand I have no idea what JSON-RPC has to do with this. |
I understand that and yes, that is after all how most tray processes work: they are a separate process... but such (separate process) should be part of ncdns release package. ---- On Fri, 25 Nov 2016 16:33:18 -0800 Hugo Landau<notifications@github.com> wrote ----ApacheMonitor can't be used to monitor non-Apache processes. I wasn't advocating using ApacheMonitor to monitor ncdns, because that's impossible. I was saying that Win32 tray icon functionality should be in a separate process, not the daemon itself. The service implementation and service management should be in separate processes. @JeremyRand I have no idea what JSON-RPC has to do with this. —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
Alright. Finding either an existing program which can work as a tray-resident supervisor to be recommended to be bundled with ncdns, or writing a separate tray process either in Go or C to serve as a tray supervisor is a valid enhancement task. So I'll keep this open until an official solution for this niche is nominated. |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hugo Landau:
@JeremyRand I have no idea what JSON-RPC has to do with this.
It was in the context of a "stop" command like Bitcoin Core's JSON-RPC
server supports. There are other ways to do it too, presumably, so
not particularly relevant.
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJYQ5nvAAoJELPy0WV4bWVwWeEP/RAcSA8JJj2zvMFd9rWP7yM1
H5tILbbLkecT0eresWEeUCkBKRSeupfqZsJg2aOxEmrRyzYf3EqMMhs2DejPEIt8
eHypSsQGov/SRNNWJ33BECIyRjT1NFGvIvo8x6cL1IXmTe5G6bXbJG/uuKrSmrgb
/9tvzYEEJyk8Y6qJc/6ofVGNXgnjfpN7Z6+b7U8vMCwCngdeNQK7l//dTuucFry8
3ED+g8+w4ta1QRJEOxS5mXkjShb2W5iCUtI4RzqYhfpITqHFdgtdi4Lewkw3oJzM
wkRww3tGg+lMHjXot+NtuOB3LZ3cko+SbQh1d3lQWu7ClJtuSeMrmkPGULourwfa
qo4ZsRLuB6J4NxbabC2hNaMSPtDH5Rl6LyxEH0FvB6V9QM2lrmM3pgwOkZlkQ6bW
OJryeTddSBUkLkUjfYRa2aSNf9O3yIu7cjyK1PDscsj6FzrH8M8gh1SX6x+bqZAy
Eyj7d6lpni3LTg0u0ZJYxwKhJef7yw6Qk89VYqjljAjPaqR88244ouV3XmWxMx96
lSnKmEpNSzkFHztbTpghWnEBC03OJ63sHKT5uoIysbXSWz8zvrQXz5j2D3mG4Wkm
pyWYY8ck+M+1T75F5UEPY7S6tOc8Hqznnf8OMHrjj5o12NTbcp/lX4pIeGtxWnfy
z14W4Vk7wAbueUP69VZx
=Ab+R
-----END PGP SIGNATURE-----
|
Some kind of tray icon with at least a menu option for both "restarting" and "exiting" NCDNS would be awesome.
Keep up the good work.
The text was updated successfully, but these errors were encountered: