ConfigReload requests a configuration reload.
(ctx *ipc.Context, reply *int)
| 275 | |
| 276 | // ConfigReload requests a configuration reload. |
| 277 | func (s *SeesawEngine) ConfigReload(ctx *ipc.Context, reply *int) error { |
| 278 | s.trace("ConfigReload", ctx) |
| 279 | if ctx == nil { |
| 280 | return errContext |
| 281 | } |
| 282 | |
| 283 | if !ctx.CanWrite() { |
| 284 | return errAccess |
| 285 | } |
| 286 | |
| 287 | return s.engine.notifier.Reload() |
| 288 | } |
| 289 | |
| 290 | // ConfigSource requests the configuration source be changed to the specified |
| 291 | // source. The name of the original source is returned. |