Adding config and systemdfiles dir with mongod and kibana.

This commit is contained in:
Phrozyn 2016-08-23 10:58:18 -05:00
Родитель 4ae037db65
Коммит faf71d98f4
4 изменённых файлов: 95 добавлений и 0 удалений

45
config/mongod.conf Normal file
Просмотреть файл

@ -0,0 +1,45 @@
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /opt/mozdef/envs/mozdef/logs/meteor-mongo.log
# Where and how to store data.
storage:
dbPath: /opt/mozdef/envs/mongo/db
journal:
enabled: true
mmapv1:
smallFiles: true
# wiredTiger:
# how the process runs
processManagement:
fork: true # fork and run in background
pidFilePath: /var/run/mozdefdb/mozdefdb.pid # location of pidfile
# network interfaces
net:
port: 3002
bindIp: 127.0.0.1 # Listen to local interface only, comment to listen on all interfaces.
#security:
#operationProfiling:
replication:
oplogSizeMB: 8
#sharding:
## Enterprise-Only Options
#auditLog:
#snmp:

17
systemdfiles/\ Normal file
Просмотреть файл

@ -0,0 +1,17 @@
[Unit]
Description=MongoDB Database Service
After=network.target
[Service]
Type=forking
PIDFile=/var/run/mozdefdb/mozdefdb.pid
ExecStart=/usr/bin/mongod --config /etc/mongod.conf
ExecReload=/bin/kill -HUP $MAINPID
#Restart=always
User=mozdef
Group=mozdef
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target

Просмотреть файл

@ -0,0 +1,16 @@
[Unit]
Description=Kibana
Requires=elasticsearch.service
[Service]
ExecStart=/opt/mozdef/envs/kibana/bin/kibana
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=kibana4
User=mozdef
Group=mozdef
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target

Просмотреть файл

@ -0,0 +1,17 @@
[Unit]
Description=MongoDB Database Service
After=network.target
[Service]
Type=forking
PIDFile=/var/run/mozdefdb/mozdefdb.pid
ExecStart=/usr/bin/mongod --config /etc/mongod.conf
ExecReload=/bin/kill -HUP $MAINPID
#Restart=always
User=mozdef
Group=mozdef
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target