Agent fixes, fuku reloads

The agent fixes a bug in the api code. fuku sees the change and restarts api without a command.

Starting point

fuku runs six services. The api service has a watch rule. It starts, then crashes after four seconds.

You ask the agent
api keeps crashing, find the bug and fix it
What happens
  1. The agent reads the api logs through fuku and finds an index out of range.
  2. The agent changes one line in main.go.
  3. fuku sees the change and restarts api.
  4. The agent checks through fuku that api stays up.
Why it helps

The agent changes only the code. fuku restarts the service and the agent reads the result from fuku.

More about this feature: Hot-Reload.