mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Improve service management with systemd helper
This commit is contained in:
parent
bdcf138aff
commit
a268d78454
4 changed files with 12 additions and 10 deletions
|
@ -157,7 +157,8 @@ sleep 2
|
||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
ynh_script_progression --message="Starting services..."
|
ynh_script_progression --message="Starting services..."
|
||||||
ynh_systemd_action --service_name seafile
|
ynh_systemd_action --service_name seafile -l "spawned seaf-server, pid " -p /var/log/seafile/controller.log
|
||||||
ynh_systemd_action --service_name seahub
|
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
|
ynh_script_progression --message="Change of URL completed for $app" --time --last
|
||||||
|
|
|
@ -223,8 +223,8 @@ pkill -f seaf-server || true
|
||||||
|
|
||||||
# Start service
|
# Start service
|
||||||
ynh_script_progression --message="Starting seafile services..." --weight=3
|
ynh_script_progression --message="Starting seafile services..." --weight=3
|
||||||
ynh_systemd_action --service_name seafile
|
ynh_systemd_action --service_name seafile -l "spawned seaf-server, pid " -p /var/log/seafile/controller.log
|
||||||
ynh_systemd_action --service_name seahub
|
ynh_systemd_action --service_name seahub -l "Started Seafile hub." -p "systemd"
|
||||||
sleep 5
|
sleep 2
|
||||||
|
|
||||||
ynh_script_progression --message="Installation of $app completed" --last
|
ynh_script_progression --message="Installation of $app completed" --last
|
||||||
|
|
|
@ -94,8 +94,8 @@ sleep 5
|
||||||
|
|
||||||
# Restart service
|
# Restart service
|
||||||
ynh_script_progression --message="Starting seafile services..." --weight=3
|
ynh_script_progression --message="Starting seafile services..." --weight=3
|
||||||
ynh_systemd_action --service_name seafile
|
ynh_systemd_action --service_name seafile -l "spawned seaf-server, pid " -p /var/log/seafile/controller.log
|
||||||
ynh_systemd_action --service_name seahub
|
ynh_systemd_action --service_name seahub -l "Started Seafile hub." -p "systemd"
|
||||||
sleep 5
|
sleep 2
|
||||||
|
|
||||||
ynh_script_progression --message="Restoration completed for $app" --last
|
ynh_script_progression --message="Restoration completed for $app" --last
|
||||||
|
|
|
@ -244,8 +244,9 @@ ynh_secure_remove --file=/tmp/seahub_cache
|
||||||
# restart seafile server
|
# restart seafile server
|
||||||
ynh_script_progression --message="Starting seafile services..." --weight=3
|
ynh_script_progression --message="Starting seafile services..." --weight=3
|
||||||
sleep 5
|
sleep 5
|
||||||
ynh_systemd_action --service_name seafile
|
ynh_systemd_action --service_name seafile -l "spawned seaf-server, pid " -p /var/log/seafile/controller.log
|
||||||
ynh_systemd_action --service_name seahub
|
ynh_systemd_action --service_name seahub -l "Started Seafile hub." -p "systemd"
|
||||||
|
sleep 2
|
||||||
|
|
||||||
# remove old version files
|
# remove old version files
|
||||||
ynh_script_progression --message="Cleaning system and updating settings..."
|
ynh_script_progression --message="Cleaning system and updating settings..."
|
||||||
|
|
Loading…
Reference in a new issue