1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fittrackee_ynh.git synced 2024-09-03 18:36:16 +02:00

fix service

This commit is contained in:
Thomas 2023-02-28 12:29:35 +01:00 committed by GitHub
parent 890185114b
commit 903d1ccb12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=1
# Create a dedicated systemd config
ynh_add_systemd_config --service="${app}" --template="${app}.service"
ynh_add_systemd_config --service="${app}_workers" --template="${app}-workers.service"
ynh_add_systemd_config --service="${app}_workers" --template="${app}_workers.service"
#=================================================
@ -98,7 +98,7 @@ ynh_add_systemd_config --service="${app}_workers" --template="${app}-workers.ser
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add "${app}"
yunohost service add "${app}-workers"
yunohost service add "${app}_workers"
#=================================================
# START SYSTEMD SERVICE
@ -107,7 +107,7 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
# Start a systemd service
ynh_systemd_action --service_name="${app}" --action="start" --log_path="systemd" --line_match="Booting worker with pid"
ynh_systemd_action --service_name="${app}-workers" --action="start" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name="${app}_workers" --action="start" --log_path="systemd" --line_match="ready"
#=================================================