1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dont-code_ynh.git synced 2024-09-03 18:26:34 +02:00

Why error mongo

This commit is contained in:
Gérard Collin 2023-01-14 18:46:04 +01:00
parent a86b64ea50
commit 2192eea5e3

View file

@ -317,14 +317,14 @@ 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
# Test mongod to see if it crashes # 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 # sleep 60
# pkill mongod # 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 ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" --length=100 --timeout=60