From a883983b3ab2c9de3e22cfc8e85017a3d839f4ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Sat, 14 Jan 2023 19:22:10 +0100 Subject: [PATCH] Why error mongo --- scripts/ynh_mongo_db__2 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index 0f66e1d..46b2a12 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -321,10 +321,11 @@ ynh_install_mongo() { # systemctl daemon-reload --quiet # Test mongod to see if it crashes - ynh_exec_err /usr/bin/mongod --config /etc/mongodb.conf - # sleep 60 + ynh_exec_err /usr/bin/mongod --help + ynh_exec_err /usr/bin/mongosh --help + # sleep 60 # pkill mongod - # ynh_exec_err cat /var/log/mongodb/mongod.conf + ynh_exec_err cat /var/log/mongodb/mongod.conf ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" --length=100 --timeout=60