Add sighup, sigusr2 into trapping code, to trap signals for reloading configuration.

Need to still figure out a way of graceful restarts - gave facebookgo/httpdown a shot,
but it is not suitable.
This commit is contained in:
Harshavardhana
2015-07-05 21:35:03 -07:00
parent a74a2db8f0
commit ba0a5ed416
3 changed files with 52 additions and 13 deletions

View File

@@ -23,8 +23,9 @@ type DonutService struct{}
// DonutArgs collections of disks and name to initialize donut
type DonutArgs struct {
Name string
Disks []string
MaxSize int64
Name string
Disks []string
}
// Reply reply for successful or failed Set operation