Commit Graph

135 Commits

Author SHA1 Message Date
Asim Aslam
90d7a87914 Move wrapper internally since its not top level relevant 2019-11-16 18:48:24 +00:00
Erik Hollensbe
a1c6cdf193 Now specify HandleSignal as an option to toggle signal handling. (#948)
Signed-off-by: Erik Hollensbe <github@hollensbe.org>
2019-11-16 11:13:34 +00:00
8227206208 use service id in profile file name (#925)
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-11-08 09:11:55 +00:00
Asim Aslam
ce080d76c6
add debug/profile package (#920)
* add debug/profile package

* set service+version for profile
2019-11-06 19:36:04 +00:00
Asim Aslam
b594547408 Add service Name 2019-10-07 08:32:28 +01:00
Asim Aslam
a5ce3e32da Support plugin loading on service.Init 2019-09-09 20:17:36 -07:00
Asim Aslam
3adce58eb2 Add monitor/debug packages 2019-08-06 17:53:14 +01:00
Asim Aslam
c350e19552 Move cmd => config/cmd 2019-06-21 13:36:11 +01:00
Asim Aslam
539b8c1a3b Move RegisterInterval into the server 2019-01-24 13:22:17 +00:00
Asim Aslam
56735b4427 add flags for register ttl and interval 2018-04-06 14:03:39 +01:00
Shulhan
a54dee31de [lint] service.Init: ignore error by assigning it to blank identifier 2018-03-13 17:51:33 +07:00
Shulhan
1bd541b69e service.Run: replace signal SIGKILL with SIGQUIT
According to "os/signal" documentation [1] and libc manual [2], SIGKILL
may not be caught by a program.

[1] https://godoc.org/os/signal
[2] https://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html
2018-03-13 17:45:34 +07:00
Shulhan
e769802939 service.Run: simplify return statement 2018-03-13 17:40:13 +07:00
Asim Aslam
ada9ef48cf Remove whitespace 2017-11-09 13:51:40 +00:00
weisd
6385bf743c add log when register err 2017-10-25 14:23:58 +08:00
Uffy
f6165f35c0 import sorting 2017-10-09 20:55:03 +08:00
Uffy
ae3f59a2f5 use sync.Once instead of chan
sync.Once is more clear and faster than chan.
2017-10-09 15:47:28 +08:00
Asim Aslam
33b1cea29d Don't create new options 2017-04-17 14:57:43 +01:00
Asim Aslam
d7dc4e618b process opts on multiple init calls 2017-03-30 19:44:01 +01:00
Asim Aslam
b43985401a on service.Init only process options once 2017-03-30 17:15:59 +01:00
Asim Aslam
942985ce51 add service test and shutdown based on context 2017-01-07 14:52:23 +00:00
Asim
8b76e277bc Make it possible to call service.Init multiple times 2016-05-06 12:21:41 +01:00
Asim
9ae0956cea Move context to metadata 2016-01-28 17:55:28 +00:00
Asim
013d1de2c4 Prefer RegisterTTL set through Init 2016-01-27 12:23:18 +00:00
Asim
7183601d3b Strip the classic aslam comments 2016-01-27 00:26:29 +00:00
Asim
5ec9d561a6 meh 2016-01-26 23:32:27 +00:00
Asim
3df078ce4e So much to configure, this is an ugly hack 2016-01-02 22:52:59 +00:00
Asim
7a02bda06b Set package to micro 2016-01-02 19:14:56 +00:00
Asim
3b56a62589 Update the way flags are used 2016-01-02 19:12:17 +00:00
Asim
1f1bc27421 Make command internal 2016-01-02 00:38:57 +00:00
Asim
59a667130c Update help printer 2016-01-01 02:45:15 +00:00
Asim
0d50b2eb32 Update top level init 2016-01-01 01:16:21 +00:00
Asim
651e9f8836 rename wrap 2015-12-23 00:02:42 +00:00
Asim
0072b6e8f2 actually wait on the signal 2015-12-21 01:41:36 +00:00
Asim
2c983ef021 Experimental top level init 2015-12-20 23:50:16 +00:00