Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop meteor through a shell command

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

like image 381
Michael McC Avatar asked Dec 19 '22 18:12

Michael McC


1 Answers

You can kill meteor with this command, as seen here:

kill $(ps ax | grep '[m]eteor' | awk '{print $1}')
like image 72
christianbundy Avatar answered Jan 15 '23 01:01

christianbundy