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
Jakob Borg
b2855f02fe
Enable log rotation by automatically closing log file ( fixes #2251 )
2015-10-29 16:04:07 +01:00
Jakob Borg
d63e54237b
Allow -logfile on all platforms ( fixes #2004 )
2015-08-27 19:11:10 +02:00
Jakob Borg
dbb388719e
Retain standard streams over restart ( fixes #2155 )
2015-08-18 17:24:50 +02:00
Jakob Borg
7705a6c1f1
mv internal lib
2015-08-09 09:35:26 +02:00
Audrius Butkevicius
cb1a7a7bdc
Update panic instructions ( fixes #2039 )
2015-07-09 22:43:16 +01:00
Jakob Borg
67ae7a0b6c
Wait for stdout/stderr to close ( fixes #1754 )
2015-05-03 17:36:01 +02:00
dartraiden
32a76901a9
typos and spelling correction
2015-04-29 15:59:47 +02:00
Jakob Borg
60fcaebfdb
Run vet and lint. Make us lint clean.
2015-04-29 10:38:02 +02:00
Jakob Borg
131f2be857
Add audit log feature
2015-04-25 23:20:39 +09:00
Audrius Butkevicius
433b923ea7
Add mutex logging
2015-04-23 10:54:14 +01:00
Jakob Borg
54752deaa1
Move index to index-v0.11.0.db (new format) and centralize location config
2015-04-01 11:30:28 +02:00
Jakob Borg
32425c5561
MPLv2
2015-03-17 16:02:27 +01:00
Jakob Borg
8aa7d4b463
Lower the bar for when to stop restarting ( fixes #1004 )
2014-11-27 20:34:35 +01:00
Jakob Borg
82c6caef85
Use more inclusive copyright header
2014-11-17 12:54:42 +01:00
Jakob Borg
3f842221f7
Write Windows line breaks on Windows; tee to stdout
2014-10-21 09:35:17 +02:00
Jakob Borg
5d0183a9ed
Add -logfile flag, Windows only
2014-10-21 09:20:26 +02:00
Jakob Borg
bb01b76582
Fix monitor deadlock on panic
2014-10-12 13:53:30 +02:00
Jakob Borg
e9d27b9d2b
Slightly improve panic log format (...)
...
- Don't repeat the first log lines
- Print panic timestamp in context.
2014-10-09 09:39:08 +02:00
Audrius Butkevicius
828bbc407f
Restarting monitor process is still considered a restart ( fixes #809 )
2014-10-09 09:04:33 +02:00
Jakob Borg
214f18cbfd
Clean up flags vs envvars
2014-10-06 17:57:35 +02:00
Jakob Borg
9edce23e76
Relicense to GPL
2014-10-01 07:53:59 +02:00
Jakob Borg
aba01cdace
Print error on monitor restart failure
2014-09-14 23:19:28 +02:00
Audrius Butkevicius
a5e3317e28
Restart monitor as part of the upgrade process ( fixes #682 )
2014-09-13 15:32:47 +01:00
Jakob Borg
abbb001975
Typo in panic message (fixes ##662)
2014-09-11 18:42:42 +02:00
Jakob Borg
5537d53f9a
Timestamp the panic log
2014-09-10 08:25:56 +02:00
Jakob Borg
2117d1d035
Tone down insignificant discovery error messages (ref #241 )
2014-09-08 09:14:21 +02:00
Jakob Borg
84eb729bd4
Don't start the browser on restarts ( fixes #636 )
2014-09-06 07:35:30 +02:00
Jakob Borg
14aea365c5
Don't stop permanently on exit ( fixes #637 )
2014-09-06 07:28:57 +02:00
Jakob Borg
33e9a88b56
Proper signal handling in monitor process
2014-09-04 23:31:22 +02:00
Jakob Borg
dd3080e018
Copyright cleanup
2014-09-04 08:31:38 +02:00
Jakob Borg
10f0713257
Use a monitor process to handle panics and restarts ( fixes #586 )
2014-09-02 13:24:41 +02:00