From f5814cc3742c807c19f5cabbca1ea346917673db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Thu, 19 Jan 2023 17:10:04 +0100 Subject: [PATCH] back to normal mongo install --- scripts/ynh_mongo_db__2 | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index e60c2c2..f1acafa 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -317,14 +317,8 @@ ynh_install_mongo() { mongodb_servicename=mongod # Make sure MongoDB is started and enabled -# systemctl enable $mongodb_servicename --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 + systemctl enable $mongodb_servicename --quiet + systemctl daemon-reload --quiet ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" --length=100 --timeout=60