Closed tonychen0924 closed 1 year ago
It seems that you have many instances of http_exmaple_cnt
running in the background.
For this example, you only need one instance running in foreground.
Kill all these instances, and then keep one instance in foreground. You should be able to enter lb
command for a foreground instance like this:
./http_example_cntd
HTTP Admin started at port 8080
-> [2023-07-20T13:53:44] [ info] [celix_framework] [framework_start:481] Celix framework started
-> lb
Bundles:
ID State Name Group
0 ACTIVE Celix Framework Celix/Framework
1 ACTIVE Apache Celix HTTP Admin Celix/HTTP_admin
2 ACTIVE Apache Celix C Shell Celix/Shell
3 ACTIVE Apache Celix Shell WUI Celix/Shell
4 ACTIVE Apache Celix Shell TUI Celix/Shell
5 ACTIVE Apache Celix HTTP Example
-> # Here you should have a prompt
Normally, HTTP server should run as a background daemon. But this example serves to show that shell can be used via both CLI and web. If you really want to run it in background, just remove TUI bundle from the container.
Ok,After kill other same process ,it can visit successfully . thanks for your answer .
i found must use command "quit" to quit . If quit with "ctrl+c" or "ctrl+r" , it will course muti process are running . I suggest whether to consider adding these two signals because it is more in line with the exit habit of the program ?
i found must use command "quit" to quit . If quit with "ctrl+c" or "ctrl+r" , it will course muti process are running . I suggest whether to consider adding these two signals because it is more in line with the exit habit of the program ?
I check the example on my machine, ctrl+c
worked as expected.
I also checked the source code, and founded that SIGINT
is dealt with the following:
If it still does not work on your machine, you can reopen this and add more contextual information to help us find the root cause. Of course, you can investigate it yourself. A bug fixing pull request is always welcomed.
PS: ctrl+r
usually means reverse history search, and is not the expected way of quitting.
my feature : I wan to use web to manage celix bundle , such as lb,install in web .
When I build celix successfully , then run http_admin
NOTE: My operations are all based on “celix/examples/celix-examples/http_example/README.md”