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

Getting detailed info

This commit is contained in:
Gérard Collin 2023-01-18 11:16:36 +01:00
parent 3ac8354dd7
commit a790893c47

View file

@ -319,16 +319,12 @@ ynh_install_mongo() {
# Make sure MongoDB is started and enabled
# systemctl enable $mongodb_servicename --quiet
# systemctl daemon-reload --quiet
ynh_exec_err uname -a
# Test mongod to see if it crashes
ynh_exec_err /usr/bin/mongod --help
ynh_exec_err which mongod
ynh_exec_err ldd /usr/bin/mongod
ynh_exec_err ls -al /usr/bin/mongod
# sleep 60
# pkill mongod
# ynh_exec_err cat /var/log/mongodb/mongod.conf
# 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