Skip to content

Instantly share code, notes, and snippets.

@troyk
Created October 2, 2015 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save troyk/0b3193316e9d2e93734b to your computer and use it in GitHub Desktop.
Save troyk/0b3193316e9d2e93734b to your computer and use it in GitHub Desktop.
restart script for blit
#!/bin/bash
# sudo stop www-blit.com
# rm /var/www/blit/tmp/puma/*
# sudo start www-blit.com
# TODO: figure out how to restart sidekiq
ps auxf | grep "blit"
blit_puma_pid=$(ps -C ruby -F | grep '/puma.*\[blit\]' | awk {'print $2'})
echo "sending SIGUSR1 to pid $blit_puma_pid"
kill -s SIGUSR1 $blit_puma_pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment