projects
/
project
/
odhcp6c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8b21f2
)
Add started and stopped events
author
Steven Barth
<steven@midlink.org>
Wed, 2 Jan 2013 09:49:16 +0000
(10:49 +0100)
committer
Steven Barth
<steven@midlink.org>
Wed, 2 Jan 2013 09:49:16 +0000
(10:49 +0100)
src/odhcp6c.c
patch
|
blob
|
history
diff --git
a/src/odhcp6c.c
b/src/odhcp6c.c
index 0825610a2a61f87d6f3c11935d118b983be7a4f6..9aaa008881d28067075552256b36b3f006b6a734 100644
(file)
--- 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;
}