diff --git a/scripts/backup b/scripts/backup index 65f46b9..d97d65b 100755 --- a/scripts/backup +++ b/scripts/backup @@ -43,8 +43,6 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app #================================================= # BACKUP THE APP MAIN DIR #================================================= -# Stop Minetest before backup... -ynh_systemd_action --action=stop ynh_print_info --message="Backing up the main app directory..." @@ -77,6 +75,6 @@ ynh_backup --src_path="/etc/systemd/system/$app.service" # END OF SCRIPT #================================================= # Restart Minetest -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/minetest.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/minetest.log" --line_match="listening on" ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." diff --git a/scripts/install b/scripts/install index 723e027..76862b5 100755 --- a/scripts/install +++ b/scripts/install @@ -203,8 +203,6 @@ fi # Set permissions on logs chown -R $app:$app /var/log/$app -ynh_systemd_action --action=start - #================================================= # STORE THE CONFIG FILE CHECKSUM #================================================= @@ -267,7 +265,7 @@ yunohost service add $app --log "/var/log/$app/minetest.log" #================================================= ynh_print_info --message="Reloading minetest..." -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/minetest.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/minetest.log" --line_match="listening on" #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index 79cdedc..b5f44ca 100755 --- a/scripts/restore +++ b/scripts/restore @@ -100,7 +100,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= ynh_print_info --message="Reloading minetest..." -ynh_systemd_action --service_name=$app --action="restart" --log_path="/var/log/$app/minetest.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/minetest.log" --line_match="listening on" #================================================= # END OF SCRIPT diff --git a/scripts/upgrade b/scripts/upgrade index 57ef7e0..48a6d34 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -181,7 +181,7 @@ chown -R $app: $home_path #================================================= ynh_print_info --message="Restarting Minetest..." -ynh_systemd_action --service_name=$app --action="restart" --log_path="/var/log/$app/minetest.log" +ynh_systemd_action --service_name=$app --action="restart" --log_path="/var/log/$app/minetest.log" --line_match="listening on" #================================================= # END OF SCRIPT