mirror of
https://github.com/YunoHost-Apps/dont-code_ynh.git
synced 2024-09-03 18:26:34 +02:00
back to normal mongo install
This commit is contained in:
parent
e664ee0ea6
commit
f5814cc374
1 changed files with 2 additions and 8 deletions
|
@ -317,14 +317,8 @@ ynh_install_mongo() {
|
||||||
mongodb_servicename=mongod
|
mongodb_servicename=mongod
|
||||||
|
|
||||||
# Make sure MongoDB is started and enabled
|
# Make sure MongoDB is started and enabled
|
||||||
# systemctl enable $mongodb_servicename --quiet
|
systemctl enable $mongodb_servicename --quiet
|
||||||
# systemctl daemon-reload --quiet
|
systemctl daemon-reload --quiet
|
||||||
ynh_exec_err uname -a
|
|
||||||
|
|
||||||
# crash mongod and display log
|
|
||||||
/usr/bin/mongod --help 1> mongo-crash.txt 2>&1
|
|
||||||
ynh_exec_err ls -al /var/log
|
|
||||||
ynh_exec_err cat -n 30 /var/log/syslog
|
|
||||||
|
|
||||||
ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" --length=100 --timeout=60
|
ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" --length=100 --timeout=60
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue