Skip to content

Commit

Permalink
Use the default packaged mcrouter instance for local installs
Browse files Browse the repository at this point in the history
  • Loading branch information
bsimpson63 committed Mar 9, 2017
1 parent 864681b commit 67338d5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
12 changes: 12 additions & 0 deletions install/setup_mcrouter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,15 @@ if [ ! -f /etc/mcrouter/global.conf ]; then
}
MCROUTER
fi

# this file is sourced by the default mcrouter upstart config, see
# /etc/init/mcrouter.conf
cat > /etc/default/mcrouter <<MCROUTER_DEFAULT
MCROUTER_FLAGS="-f /etc/mcrouter/global.conf -L /var/log/mcrouter/mcrouter.log -p 5050 -R /././ --stats-root=/var/mcrouter/stats"
MCROUTER_DEFAULT

# set an upstart override so mcrouter starts when reddit starts
echo "start on networking or reddit-start" > /etc/init/mcrouter.override

# restart mcrouter to read the updated config
service mcrouter restart
14 changes: 0 additions & 14 deletions upstart/reddit-mcrouter-global.conf

This file was deleted.

0 comments on commit 67338d5

Please sign in to comment.