Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 07-14-2017 02:09 PM
Hi,
I started the metron-ui and rest-api from commande line as explained in the HCP doc.
What's the clean way (command) to stop the metron-ui and the rest-api?
Thanks,
Michel
Created 08-10-2017 11:40 AM
Frankly, there is no clean way to do it, at least not before HCP-1.2.1.0. Before that you have to run the 'services' in your shell somehow or daemonize them yourself.
Consequently, you can just kill or Ctrl-C the cmd line Rest and Mgt. UI 'services'. I never had any issues afterwards doing that.
HCP-1.2.1.0 release will install Rest and Mgt. UI as proper OS level services for you ...
Created 07-17-2017 04:05 PM
Hi @msumbul, you can do this using the commands:
service metron-management-ui stop service metron-rest stop
Likewise you can use start and status commands as well.
Created 08-10-2017 11:35 AM
This is not possible since Rest and Mgt. UI are both not installed as OS level services before HCP1.2.1.0.
Created 08-10-2017 01:31 PM
@Jasper - Yes, you are right. I stand corrected.
Created 07-20-2017 03:11 PM
Hi @msumbul, @asubramanian,
I had the same question and when you suggested doesn't work since both processes are not registered as services.
since they are launched via nohup start_.....
here what I get when I try it:
$ service metron-rest stop
Redirecting to /bin/systemctl stop metron-rest.service
Failed to stop metron-rest.service: Unit metron-rest.service not loaded.
$ service metron-rest start
Redirecting to /bin/systemctl start metron-rest.service
Failed to start metron-rest.service: Unit not found.
Any suggestions?
Frank
Created 08-10-2017 11:40 AM
Frankly, there is no clean way to do it, at least not before HCP-1.2.1.0. Before that you have to run the 'services' in your shell somehow or daemonize them yourself.
Consequently, you can just kill or Ctrl-C the cmd line Rest and Mgt. UI 'services'. I never had any issues afterwards doing that.
HCP-1.2.1.0 release will install Rest and Mgt. UI as proper OS level services for you ...
Created 08-16-2017 07:10 AM
@msumbul Please mark the question as answered if sufficiently answered