aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2020-05-26 13:40:04 +0200
committeryalh76 <yalh@yahoo.com>2020-05-26 13:40:04 +0200
commit0c4121ac5234e4351a431f9e6091c426a60aa533 (patch)
tree807c387b70529a53f43f70a77b292c3c3a2d12bb
parentd3ea53c200fd20a61acb4bb1a5dce5aa6ab77752 (diff)
downloadmastodon_ynh-0c4121ac5234e4351a431f9e6091c426a60aa533.tar.gz
mastodon_ynh-0c4121ac5234e4351a431f9e6091c426a60aa533.tar.bz2
mastodon_ynh-0c4121ac5234e4351a431f9e6091c426a60aa533.zip
Add service description
-rw-r--r--scripts/install6
-rw-r--r--scripts/restore6
-rw-r--r--scripts/upgrade9
3 files changed, 15 insertions, 6 deletions
diff --git a/scripts/install b/scripts/install
index c78419e..5443717 100644
--- a/scripts/install
+++ b/scripts/install
@@ -264,9 +264,9 @@ chown -R "$app": "$final_path"
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=3
-yunohost service add "$app-web"
-yunohost service add "$app-sidekiq"
-yunohost service add "$app-streaming"
+yunohost service add "$app-web" --description "$app web service" --log_type "systemd"
+yunohost service add "$app-sidekiq" --description "$app sidekiq service" --log_type "systemd"
+yunohost service add "$app-streaming" --description "$app streaming service" --log_type "systemd"
#=================================================
# START SYSTEMD SERVICE
diff --git a/scripts/restore b/scripts/restore
index f41b2a8..175543a 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -142,9 +142,9 @@ systemctl enable "$app-web" "$app-sidekiq" "$app-streaming"
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=3
-yunohost service add $app-web
-yunohost service add $app-sidekiq
-yunohost service add $app-streaming
+yunohost service add "$app-web" --description "$app web service" --log_type "systemd"
+yunohost service add "$app-sidekiq" --description "$app sidekiq service" --log_type "systemd"
+yunohost service add "$app-streaming" --description "$app streaming service" --log_type "systemd"
#=================================================
# START SYSTEMD SERVICE
diff --git a/scripts/upgrade b/scripts/upgrade
index eff42b3..f14c08b 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -323,6 +323,15 @@ ynh_add_systemd_config --service="$app-sidekiq" --template="mastodon-sidekiq.ser
ynh_add_systemd_config --service="$app-streaming" --template="mastodon-streaming.service"
#=================================================
+# INTEGRATE SERVICE IN YUNOHOST
+#=================================================
+ynh_script_progression --message="Integrating service in YunoHost..." --weight=3
+
+yunohost service add "$app-web" --description "$app web service" --log_type "systemd"
+yunohost service add "$app-sidekiq" --description "$app sidekiq service" --log_type "systemd"
+yunohost service add "$app-streaming" --description "$app streaming service" --log_type "systemd"
+
+#=================================================
# GENERIC FINALIZATION
#=================================================
# SECURE FILES AND DIRECTORIES