Skip to content

Instantly share code, notes, and snippets.

@amagura
Created March 26, 2014 16:32
Show Gist options
  • Save amagura/9787448 to your computer and use it in GitHub Desktop.
Save amagura/9787448 to your computer and use it in GitHub Desktop.
mongos.conf - upstart job for Mongos Server
# /etc/init/mongos.conf
description "service file for mongos server"
author "Alexej Magura"
limit nofile 20000 20000
kill timeout 300 # wait 300s between SIGTERM and SIGKILL
expect daemon
start on (local-filesystems and net-device-up IFACE=eth0)
stop on runlevel [016]
exec /usr/bin/mongos --config /etc/mongodb.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment