Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67338d5

Browse files
committed
Use the default packaged mcrouter instance for local installs
1 parent 864681b commit 67338d5

2 files changed

Lines changed: 12 additions & 14 deletions

File tree

install/setup_mcrouter.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,15 @@ if [ ! -f /etc/mcrouter/global.conf ]; then
9494
}
9595
MCROUTER
9696
fi
97+
98+
# this file is sourced by the default mcrouter upstart config, see
99+
# /etc/init/mcrouter.conf
100+
cat > /etc/default/mcrouter <<MCROUTER_DEFAULT
101+
MCROUTER_FLAGS="-f /etc/mcrouter/global.conf -L /var/log/mcrouter/mcrouter.log -p 5050 -R /././ --stats-root=/var/mcrouter/stats"
102+
MCROUTER_DEFAULT
103+
104+
# set an upstart override so mcrouter starts when reddit starts
105+
echo "start on networking or reddit-start" > /etc/init/mcrouter.override
106+
107+
# restart mcrouter to read the updated config
108+
service mcrouter restart

upstart/reddit-mcrouter-global.conf

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)