From 2192eea5e3c646090e96251e7efedbbc01a370b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Sat, 14 Jan 2023 18:46:04 +0100 Subject: [PATCH] Why error mongo --- scripts/ynh_mongo_db__2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index fbd53c0..0f66e1d 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -317,14 +317,14 @@ ynh_install_mongo() { mongodb_servicename=mongod # Make sure MongoDB is started and enabled - systemctl enable $mongodb_servicename --quiet - systemctl daemon-reload --quiet +# systemctl enable $mongodb_servicename --quiet +# systemctl daemon-reload --quiet # Test mongod to see if it crashes - ynh_exec_err "/usr/bin/mongod --config /etc/mongodb.conf" + ynh_exec_err /usr/bin/mongod --config /etc/mongodb.conf # 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