diff --git a/scripts/change_url b/scripts/change_url index 219cbd0..a29b4c2 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -157,7 +157,8 @@ sleep 2 # Reload services ynh_script_progression --message="Starting services..." -ynh_systemd_action --service_name seafile -ynh_systemd_action --service_name seahub +ynh_systemd_action --service_name seafile -l "spawned seaf-server, pid " -p /var/log/seafile/controller.log +ynh_systemd_action --service_name seahub -l "Started Seafile hub." -p "systemd" +sleep 2 ynh_script_progression --message="Change of URL completed for $app" --time --last diff --git a/scripts/install b/scripts/install index 046dcf1..2de776f 100644 --- a/scripts/install +++ b/scripts/install @@ -223,8 +223,8 @@ pkill -f seaf-server || true # Start service ynh_script_progression --message="Starting seafile services..." --weight=3 -ynh_systemd_action --service_name seafile -ynh_systemd_action --service_name seahub -sleep 5 +ynh_systemd_action --service_name seafile -l "spawned seaf-server, pid " -p /var/log/seafile/controller.log +ynh_systemd_action --service_name seahub -l "Started Seafile hub." -p "systemd" +sleep 2 ynh_script_progression --message="Installation of $app completed" --last diff --git a/scripts/restore b/scripts/restore index 4accbfd..a00ba17 100644 --- a/scripts/restore +++ b/scripts/restore @@ -94,8 +94,8 @@ sleep 5 # Restart service ynh_script_progression --message="Starting seafile services..." --weight=3 -ynh_systemd_action --service_name seafile -ynh_systemd_action --service_name seahub -sleep 5 +ynh_systemd_action --service_name seafile -l "spawned seaf-server, pid " -p /var/log/seafile/controller.log +ynh_systemd_action --service_name seahub -l "Started Seafile hub." -p "systemd" +sleep 2 ynh_script_progression --message="Restoration completed for $app" --last diff --git a/scripts/upgrade b/scripts/upgrade index 914021a..9590977 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -244,8 +244,9 @@ ynh_secure_remove --file=/tmp/seahub_cache # restart seafile server ynh_script_progression --message="Starting seafile services..." --weight=3 sleep 5 -ynh_systemd_action --service_name seafile -ynh_systemd_action --service_name seahub +ynh_systemd_action --service_name seafile -l "spawned seaf-server, pid " -p /var/log/seafile/controller.log +ynh_systemd_action --service_name seahub -l "Started Seafile hub." -p "systemd" +sleep 2 # remove old version files ynh_script_progression --message="Cleaning system and updating settings..."