From: Steven Barth Date: Wed, 2 Jan 2013 09:49:16 +0000 (+0100) Subject: Add started and stopped events X-Git-Tag: debian/1.1+git20160131-1~208 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=odhcp6c.git;a=commitdiff_plain;h=1aa59e83326585ec9e16c559865181baf4ef56c7 Add started and stopped events --- 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; }