diff options
author | Steven Barth <steven@midlink.org> | 2013-01-02 10:49:16 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-01-02 10:49:16 +0100 |
commit | 1aa59e83326585ec9e16c559865181baf4ef56c7 (patch) | |
tree | b7da54429f96a25617fbc84785096643adbb947d /src/odhcp6c.c | |
parent | e8b21f28d61621624a74c40f3709835476a88293 (diff) | |
download | odhcp6c-1aa59e83326585ec9e16c559865181baf4ef56c7.tar.gz |
Add started and stopped events
Diffstat (limited to 'src/odhcp6c.c')
-rw-r--r-- | src/odhcp6c.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |