Changes

From SME Server
Jump to navigationJump to search
108 bytes removed ,  13:03, 29 October 2021
Line 83: Line 83:     
===Install===
 
===Install===
 +
 +
WIP
 +
 
Use the above method to add the repo and then:
 
Use the above method to add the repo and then:
    
  yum --enablerepo=mongodb install mongodb-org
 
  yum --enablerepo=mongodb install mongodb-org
   −
Mongo will automatically create a symlink so currently there is no way to enable/disable it apart from manually. Once Koozali SME has some more systemd tools we can use DB keys etc.
+
We need a db config entry for SME to recognise it:
 +
 
 +
config set mongod service status enabled access private
   −
Created symlink from /etc/systemd/system/multi-user.target.wants/mongod.service to /usr/lib/systemd/system/mongod.service
+
We will need a file
   −
To enable/disable this just use:
+
/usr/lib/systemd/system/mongod.service/50koozali.conf
   −
systemctl {en|dis}able mongodb
+
Something like:
   −
And to start stop
+
[Unit]
 +
After=network.target network.service wan.service
 +
[Install]
 +
WantedBy=sme-server.target
   −
systemctl {start|stop|restart} mongodb
        −
=== USing keys===
+
=== Using keys===
    
  config setprop mongod service status enabled
 
  config setprop mongod service status enabled
Line 106: Line 113:  
Minimal config I use for Rocket.Chat
 
Minimal config I use for Rocket.Chat
   −
  grep '^[[:blank:]]*[^[:blank:]#;]' /etc/mongod.conf
+
  <nowiki>grep '^[[:blank:]]*[^[:blank:]#;]' /etc/mongod.conf</nowiki>
    
  systemLog:
 
  systemLog:

Navigation menu