aboutsummaryrefslogtreecommitdiffstats
path: root/start_receiver.sh
blob: a4586ea4300c03cfdafcec20a67ea9c4c72243a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

export RAILS_ENV=production
receiver="bundle exec rails runner bin/start.rb"

case "$1" in
    start)
        $receiver start
        ;;
    stop)
        $receiver stop
        ;;
    restart)
        $receiver restart
        ;;
    status)
        $receiver status
        ;;
    *)
        echo "usage: $0 {start|stop|restart|status}"
        exit 1
esac