Add started and stopped events
authorSteven Barth <steven@midlink.org>
Wed, 2 Jan 2013 09:49:16 +0000 (10:49 +0100)
committerSteven Barth <steven@midlink.org>
Wed, 2 Jan 2013 09:49:16 +0000 (10:49 +0100)
src/odhcp6c.c

index 0825610a2a61f87d6f3c11935d118b983be7a4f6..9aaa008881d28067075552256b36b3f006b6a734 100644 (file)
@@ -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;
 }