Changes to add support for mongodb for xenial to trove/integration. The schema is the same proposed by Doug Shelley in the initial work, splitting trusty and xenial. - bumped version to 3.2.11 - conversion of upstart files in systemd unit files for mongod and mongos - added oneshot systemd unit file for Transparent Huge Pages - added script to check if numactl is used by the system and oneshot systemd unit file that will generate an environment file for mongod systemd service Change-Id: Ie6492b24f6803b35d929b499cfb7716e28bebfaa Depends-On: I8e1de6ef31f969ccee88c334a0d5ed03aabd1b51
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_
|