Permalink
Browse files

Adding config and systemdfiles dir with mongod and kibana.

  • Loading branch information...
Phrozyn committed Aug 23, 2016
1 parent 4ae037d commit faf71d98f4228a24d2b1a2afb2c2b33dd614cb45
Showing with 95 additions and 0 deletions.
  1. +45 −0 config/mongod.conf
  2. +17 −0 systemdfiles/\
  3. +16 −0 systemdfiles/kibana.service
  4. +17 −0 systemdfiles/mongod.service
View
@@ -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:
View
@@ -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

0 comments on commit faf71d9

Please sign in to comment.