install_r45_on_ubuntu_1804l.../close_site.sh

2 lines
155 B
Bash

#!/bin/bash
UNICORN_PID="$(fuser tmp/pids/unicorn.sock tmp/sockets/unicorn.sock tmp/unicorn.sock) $(cat tmp/pids/unicorn.pid)" && kill -s TERM $UNICORN_PID