Add generic host-up and host-down scripts.

Thanks to Menno Smits for a patch.
This commit is contained in:
Guus Sliepen 2006-06-12 21:45:39 +00:00
parent f88c9942e1
commit 2077451e07
3 changed files with 12 additions and 0 deletions

View file

@ -283,6 +283,8 @@ void sssp_bfs(void)
asprintf(&envp[5], "REMOTEPORT=%s", port);
envp[6] = NULL;
execute_script(n->status.reachable ? "host-up" : "host-down", envp);
asprintf(&name,
n->status.reachable ? "hosts/%s-up" : "hosts/%s-down",
n->name);