Created
          October 2, 2015 22:39 
        
      - 
      
- 
        Save troyk/0b3193316e9d2e93734b to your computer and use it in GitHub Desktop. 
    restart script for blit
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/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