aboutsummaryrefslogtreecommitdiff
path: root/scripts/rhodecode-stop.conf
blob: 2fedfff2bb78edbcd538f10c33720fef9c4d8f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Stops rhodecode instances running based on the INI file used to start them.
# To stop rhodecode instances, just run:
# service rhodecode-stop start

description "RhodeCode Stop Task"
author "Milo Casagrande <milo.casagrande@linaro.org>"

start on runlevel [!2345]

task

env HOME="/home/rhodecode"

script
    for conf in `ls $HOME/production-*.ini` ; do
        stop rhodecode APPINI=`basename $conf`
    done
end script