How to restart after bot crashes
I know is not JS related, but maybe is still one of the best places to ask. Sometimes user input error out.
Im using ubuntu and nodemon the bot file.
Anyone knows how to reboot automatically?
19 Replies
Manage your application state with pm2 so you can restart, stop and delete processes dynamically: learn more
^
im using nodemon tho, is there another way?
its pm2
Hey, I got the kinda same question, check my latest post.
Same shit. Just process.exit() and let the monitoring thing reboot it
I tried process.exit() on linux, it doesn't kill the child processes
yeah this question isnt about sharding though
ya, can you help me in my latest post?
#How to exit all shards and main process?
Nope, I dont shard
oh okay
Please dont advertise your question in other peoples posts
okay
Not to mention you already opened two of them 👀
ya they are 2 different things
no don't do it
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
bc its bad practice
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View