Exit from meteor started with --once


#1

When started with --once option, the script that got executed finishes but the process keeps running. Is there a way to exit (programmatically)?


#2

which meteor command have --once argument ?


#3

Thanks for your question - I am now surprised to find almost no references to --once. One is here


But I cannot find the article that described what we are doing to run mass database changes on server side without any HTTP interaction.
Maybe this is no longer supported. If that’s the case, is there another way (apart from “meteor shell”) to run potentially long lasting things on server side (and exit the meteor process when the script is done).


#4

process.exit();
does the trick