Skip to content

Instantly share code, notes, and snippets.

@Unitech
Created November 13, 2014 17:18
Show Gist options
  • Select an option

  • Save Unitech/4c4c07fca3cd4756bf8a to your computer and use it in GitHub Desktop.

Select an option

Save Unitech/4c4c07fca3cd4756bf8a to your computer and use it in GitHub Desktop.
echo "################## GRACEFUL RELOAD 2 ###################"
################## GRACEFUL RELOAD 2 ###################
###############
$pm2 kill
[PM2] Spawning PM2 daemon
[PM2] WORKER STARTED with refreshing interval: 30000
[[[[ PM2/God daemon launched ]]]]
BUS system [READY] on port /home/travis/.pm2/pub.sock
RPC interface [READY] on port /home/travis/.pm2/rpc.sock
[PM2] Success
[PM2] Stopping PM2...
[PM2] Deleting all process
[PM2] [WARN] No process found
[PM2] All processes has been stopped and deleted
PM2 is being killed via kill method
killing PM2 via Satan
[PM2] PM2 stopped
echo "Launching"
Launching
$pm2 start graceful-exit-no-listen.js -i 2 --name="graceful2" -o "grace2.log" -e "grace-err2.log"
RPC socket closed
PUB socket closed
exiting PM2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment