This commit will merge into trove, the trove-integration tree as of commit 9f92ca853f8aa2f72921e54682c918941a8f0919. This is in preparation for making trove-integration go away. In addition, it supresses any consideration of the integration directory in the trove tox tests as it is understandably a small pile of pooh and in need of much cleanup. Change-Id: Ib7f2655c4c5ed86b5454708c04371ee55e37ec2d Partially-Implements-Blueprint: eliminate-trove-integration-and-redstack
31 lines
635 B
Bash
Executable File
31 lines
635 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
set -o xtrace
|
|
|
|
cat > /etc/init/mongos.conf << '_EOF_'
|
|
limit fsize unlimited unlimited
|
|
limit cpu unlimited unlimited
|
|
limit as unlimited unlimited
|
|
limit nofile 64000 64000
|
|
limit rss unlimited unlimited
|
|
limit nproc 64000 64000
|
|
|
|
pre-start script
|
|
mkdir -p /var/run/mongodb/
|
|
touch /var/run/mongodb/mongos.pid
|
|
chown mongodb -R /var/run/mongodb/
|
|
end script
|
|
|
|
start on runlevel [2345]
|
|
stop on runlevel [06]
|
|
|
|
script
|
|
exec start-stop-daemon --start \
|
|
--chuid mongodb \
|
|
--pidfile /var/run/mongos.pid \
|
|
--make-pidfile \
|
|
--exec /usr/bin/mongos -- --config /etc/mongos.conf
|
|
end script
|
|
_EOF_
|