kozec / syncthing-gtk

GTK3 & python based GUI for Syncthing
GNU General Public License v2.0
1.29k stars 140 forks source link

Does not shutdown syncthing daemon on SIGHUP or SIGTERM (Linux) #496

Closed nemoinis closed 5 years ago

nemoinis commented 5 years ago

When the option "When exiting after daemon..." is set to "terminate daemon", syncthing-gtk does terminate the daemon when quit manually.

But it does not do it upon SIGHUP or SIGTERM, which makes it difficult to script an orderly session logout, for example. This can lead to problems in situations where the home must be unmounted, or the systemd user daemon waits for all processes to terminate, etc...

Workaround is to terminate syncthing directly, but it would be cleaner if syncthing-gtk did it.

justpusher commented 5 years ago

I'm not sure this is syncthing-GTK issue. I tried running syncthing daemon directly from shell startup, and it does not exit on logout. syncthing exists on SIGTERM but ignores SIGHUP.