forked from mozilla/MozDef
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Phrozyn
committed
Aug 23, 2016
1 parent
db91d3a
commit 71f2a32
Showing
5 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |