Created
June 16, 2012 03:55
-
-
Save yalab/2939840 to your computer and use it in GitHub Desktop.
Upstart script mongodb sharding router
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu upstart file at /etc/init/mongos.conf | |
start on runlevel [2345] | |
stop on runlevel [06] | |
script | |
ENABLE_MONGODB="yes" | |
PIDFILE=/var/run/mongos.pid | |
if [ "x$ENABLE_MONGODB" = "xyes" ]; then exec start-stop-daemon --start --quiet --chuid mongodb -m --pidfile $PIDFILE --exec /usr/bin/mongos -- --config /etc/mongos.conf; fi | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment