From 1aa59e83326585ec9e16c559865181baf4ef56c7 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 2 Jan 2013 10:49:16 +0100 Subject: [PATCH] Add started and stopped events --- src/odhcp6c.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/odhcp6c.c b/src/odhcp6c.c index 0825610..9aaa008 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -164,6 +164,8 @@ int main(_unused int argc, char* const argv[]) } } + script_call("started"); + while (do_signal != SIGTERM) { // Main logic odhcp6c_clear_state(STATE_SERVER_ID); odhcp6c_clear_state(STATE_SERVER_CAND); @@ -276,6 +278,7 @@ int main(_unused int argc, char* const argv[]) dhcpv6_request(DHCPV6_MSG_RELEASE); } + script_call("stopped"); return 0; } -- 2.39.2