Skip to content
  • Iustin Pop's avatar
    watcher: automatically restart noded/rapi · c4f0219c
    Iustin Pop authored
    This patch makes the watcher automatically restart the node and rapi
    daemons, if they are not running (as per the PID file).
    This is not an exhaustive test; a better one would be TCP connect to the
    port, and an even better one a simple protocol ping (e.g. get / for rapi
    and a rpc_call_alive for noded), but since we don't know how they've
    been started we can't implement it today. rapi would need to write the
    SSL/port to a file, and noded something similar, so that we know how to
    Signed-off-by: default avatarIustin Pop <>
    Reviewed-by: default avatarMichael Hanselmann <>