syncthing/cmd
Jakob Borg 7b686c1103 Implement signal handling
With this change, the behavior is as follows:

 - SIGTERM / SIGINT: Exit cleanly (exit code 0)
 - SIGHUP: Restart

This is the case both when hitting the monitor process or the inner
process, or if running with NORESTART (but then we won't restart,
obviously, just exit with code exitRestarting).

It enables "pkill -HUP syncthing" to do the right thing to restart all
Syncthings on package upgrade, for example.
2015-12-14 13:07:42 +01:00
..
stcompdirs mv internal lib 2015-08-09 09:35:26 +02:00
stevents Change (default) GUI port from 8080 to 8384 ('ST' in ascii values) 2015-03-26 21:36:06 +01:00
stfileinfo Fix import paths 2015-09-22 19:38:46 +02:00
stfinddevice Fix import paths 2015-09-22 19:38:46 +02:00
stindex Because I am a muppet 2015-10-23 20:21:21 +01:00
stsigtool stsigtool should use the built in key by default 2015-08-24 16:24:00 +02:00
stwatchfile Add stwatchfile 2015-07-27 19:00:22 +01:00
syncthing Implement signal handling 2015-12-14 13:07:42 +01:00
todos MPLv2 2015-03-17 16:02:27 +01:00
.gitignore Remove reprecated st* utils 2014-07-01 12:20:25 +02:00