Meteor stop via shell command

Thanks to some help I just got on this site, I know how to launch my meteor application (launch a running meteorite server) using the shell script that I created using Automator. But now I understand that the only way I know how to stop the meteorite server is to do CTL-C in a terminal window. But if I run a meteorite server with my script, I don't have a shell window. Is there a way to stop the server through a shell script?

+4
source share
1 answer

You can kill a meteor with this command as shown here :

kill $(ps ax | grep '[m]eteor' | awk '{print $1}')
+11
source

Source: https://habr.com/ru/post/1526640/


All Articles