trove/integration/scripts/files/deprecated-elements/ubuntu-xenial-mongodb/install.d/41-mongod-systemd
Lingxian Kong 602c4d42de Improve the function tests
- Execute test groups in serial to make sure no more than 2 database
  instance are created at the same time.
- Remove some unneccesary tests
- Remove unneeded datastore, e.g. 'Test_Datastore_1'
- Remove unsupported trovestack subcommands
- Move unsupported DIB elements to the 'deprecated-elements' folder
- Decrease default value of 'agent_call_high_timeout' to 5min
- Add initial_deplay for pooling task
- Use socket file to connect with database instead of using localhost
  IP

Change-Id: Ie5030a671fbeb453eafa6cbe04e08da7b52e33c9
2020-01-28 14:27:52 +13:00

32 lines
663 B
Bash
Executable File

#!/bin/sh
set -e
set -o xtrace
cat > /lib/systemd/system/mongod.service << '_EOF_'
[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target check-numa.service
Wants=check-numa.service
Documentation=https://docs.mongodb.org/manual
[Service]
User=mongodb
Group=mongodb
RuntimeDirectory=mongodb
EnvironmentFile=/etc/numactl.env
ExecStart=/bin/bash -c "${NUMACTL} /usr/bin/mongod --quiet --config /etc/mongod.conf"
LimitFSIZE=infinity
LimitCPU=infinity
LimitAS=infinity
LimitNOFILE=64000
LimitRSS=infinity
LimitNPROC=64000
[Install]
WantedBy=multi-user.target
_EOF_
systemctl daemon-reload
systemctl enable mongod.service