Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

clean method to stop metron-ui and rest-api

avatar
Expert Contributor

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

1 ACCEPTED SOLUTION

avatar
Super Collaborator

@msumbul

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 ...

View solution in original post

6 REPLIES 6

avatar
Super Collaborator

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.

avatar
Super Collaborator

@asubramanian

This is not possible since Rest and Mgt. UI are both not installed as OS level services before HCP1.2.1.0.

avatar
Super Collaborator

@Jasper - Yes, you are right. I stand corrected.

avatar
Explorer

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

avatar
Super Collaborator

@msumbul

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 ...

avatar
Super Collaborator

@msumbul Please mark the question as answered if sufficiently answered