diff --git a/scripts/install b/scripts/install index 8643b2c..fbf5186 100644 --- a/scripts/install +++ b/scripts/install @@ -153,8 +153,9 @@ ynh_script_progression --message="Starting a systemd service..." --weight=2 # Start a systemd service #ynh_systemd_action --service_name=mongod --action=restart --log_path=systemd -systemctl enable mongod.service --quiet && systemctl restart mongod.service +systemctl enable mongod --quiet && systemctl restart mongod mongo --eval "printjson(rs.initiate())" + ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="➔ System ➔ startup" #=================================================