Michael McC
Michael McC

Reputation: 689

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?

Upvotes: 4

Views: 5155

Answers (1)

christianbundy
christianbundy

Reputation: 674

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

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

Upvotes: 11

Related Questions