# Synapse workers are still injected into the list at runtime.
# Synapse workers are still injected into the list at runtime.
# Additional JVB workers (playbooks/jitsi_jvb.yml -- roles/custom/matrix-jitsi/tasks/init_additional_jvb.yml) override this variable at runtime as well.
# Additional JVB workers (playbooks/jitsi_jvb.yml -- roles/custom/matrix-jitsi/tasks/init_additional_jvb.yml) override this variable at runtime as well.
matrix_systemd_services_list: |
#
# Priority levels are like this:
# - core services (the homeserver) get a level of ~1000
# - services that core services depend on (database, Redis, ntfy, etc.) get a lower level - between 500 and 1000
# - reverse-proxying services get level 3000
# - Matrix utility services (bridges, bots) get a level of 2000/2200, so that:
# - they can start before the reverse-proxy
# - so that, when the reverse-proxy is up (Matrix is up), all bots and bridges can be interacted with
# - monitoring services (Prometheus, Grafana, ..) get a level of 4000 - they can start later than all-of-Matrix
# - services which aren't time-sensitive (various crons and timers) get a level of 5000 - they can start later than all-of-Matrix
matrix_systemd_services_list_auto: |
{{
{{
(['matrix-backup-borg.timer'] if matrix_backup_borg_enabled else [])
([{'name': 'matrix-backup-borg.timer', 'priority': 5000}] if matrix_backup_borg_enabled else [])
+
+
(['matrix-bot-buscarron.service'] if matrix_bot_buscarron_enabled else [])
([{'name': 'matrix-bot-buscarron.service', 'priority': 2200}] if matrix_bot_buscarron_enabled else [])
+
+
(['matrix-bot-go-neb.service'] if matrix_bot_go_neb_enabled else [])
([{'name': 'matrix-bot-go-neb.service', 'priority': 2200}] if matrix_bot_go_neb_enabled else [])
+
+
(['matrix-bot-honoroit.service'] if matrix_bot_honoroit_enabled else [])
([{'name': 'matrix-bot-honoroit.service', 'priority': 2200}] if matrix_bot_honoroit_enabled else [])
+
+
(['matrix-bot-matrix-registration-bot.service'] if matrix_bot_matrix_registration_bot_enabled else [])
([{'name': 'matrix-bot-matrix-registration-bot.service', 'priority': 2200}] if matrix_bot_matrix_registration_bot_enabled else [])
+
+
(['matrix-bot-matrix-reminder-bot.service'] if matrix_bot_matrix_reminder_bot_enabled else [])
([{'name': 'matrix-bot-matrix-reminder-bot.service', 'priority': 2200}] if matrix_bot_matrix_reminder_bot_enabled else [])
+
+
(['matrix-bot-maubot.service'] if matrix_bot_maubot_enabled else [])
([{'name': 'matrix-bot-maubot.service', 'priority': 2200}] if matrix_bot_maubot_enabled else [])
+
+
(['matrix-bot-mjolnir.service'] if matrix_bot_mjolnir_enabled else [])
([{'name': 'matrix-bot-mjolnir.service', 'priority': 2200}] if matrix_bot_mjolnir_enabled else [])
+
+
(['matrix-bot-postmoogle.service'] if matrix_bot_postmoogle_enabled else [])
([{'name': 'matrix-bot-postmoogle.service', 'priority': 2200}] if matrix_bot_postmoogle_enabled else [])
+
+
(['matrix-appservice-discord.service'] if matrix_appservice_discord_enabled else [])
([{'name': 'matrix-appservice-discord.service', 'priority': 2000}] if matrix_appservice_discord_enabled else [])
+
+
(['matrix-appservice-irc.service'] if matrix_appservice_irc_enabled else [])
([{'name': 'matrix-appservice-irc.service', 'priority': 2000}] if matrix_appservice_irc_enabled else [])
+
+
(['matrix-appservice-kakaotalk.service', 'matrix-appservice-kakaotalk-node.service'] if matrix_appservice_kakaotalk_enabled else [])
([{'name': 'matrix-appservice-kakaotalk.service', 'priority': 2000}] if matrix_appservice_kakaotalk_enabled else [])
+
+
(['matrix-appservice-slack.service'] if matrix_appservice_slack_enabled else [])
([{'name': 'matrix-appservice-kakaotalk-node.service', 'priority': 1900}] if matrix_appservice_kakaotalk_enabled else [])
+
+
(['matrix-appservice-webhooks.service'] if matrix_appservice_webhooks_enabled else [])
([{'name': 'matrix-appservice-slack.service', 'priority': 2000}] if matrix_appservice_slack_enabled else [])
+
+
(['matrix-beeper-linkedin.service'] if matrix_beeper_linkedin_enabled else [])
([{'name': 'matrix-appservice-webhooks.service', 'priority': 2000}] if matrix_appservice_webhooks_enabled else [])
+
+
(['matrix-go-skype-bridge.service'] if matrix_go_skype_bridge_enabled else [])
([{'name': 'matrix-beeper-linkedin.service', 'priority': 2000}] if matrix_beeper_linkedin_enabled else [])
+
+
(['matrix-heisenbridge.service'] if matrix_heisenbridge_enabled else [])
([{'name': 'matrix-go-skype-bridge.service', 'priority': 2000}] if matrix_go_skype_bridge_enabled else [])
+
+
(['matrix-hookshot.service'] if matrix_hookshot_enabled else [])
([{'name': 'matrix-heisenbridge.service', 'priority': 2000}] if matrix_heisenbridge_enabled else [])
+
+
(['matrix-mautrix-discord.service'] if matrix_mautrix_discord_enabled else [])
([{'name': 'matrix-hookshot.service', 'priority': 2000}] if matrix_hookshot_enabled else [])
+
+
(['matrix-mautrix-facebook.service'] if matrix_mautrix_facebook_enabled else [])
([{'name': 'matrix-mautrix-discord.service', 'priority': 2000}] if matrix_mautrix_discord_enabled else [])
+
+
(['matrix-mautrix-googlechat.service'] if matrix_mautrix_googlechat_enabled else [])
([{'name': 'matrix-mautrix-facebook.service', 'priority': 2000}] if matrix_mautrix_facebook_enabled else [])
+
+
(['matrix-mautrix-hangouts.service'] if matrix_mautrix_hangouts_enabled else [])
([{'name': 'matrix-mautrix-googlechat.service', 'priority': 2000}] if matrix_mautrix_googlechat_enabled else [])
+
+
(['matrix-mautrix-instagram.service'] if matrix_mautrix_instagram_enabled else [])
([{'name': 'matrix-mautrix-hangouts.service', 'priority': 2000}] if matrix_mautrix_hangouts_enabled else [])
+
+
(['matrix-mautrix-signal.service', 'matrix-mautrix-signal-daemon.service'] if matrix_mautrix_signal_enabled else [])
([{'name': 'matrix-mautrix-instagram.service', 'priority': 2000}] if matrix_mautrix_instagram_enabled else [])
+
+
(['matrix-mautrix-telegram.service'] if matrix_mautrix_telegram_enabled else [])
([{'name': 'matrix-mautrix-signal.service', 'priority': 2000}] if matrix_mautrix_signal_enabled else [])
+
+
(['matrix-mautrix-twitter.service'] if matrix_mautrix_twitter_enabled else [])
([{'name': 'matrix-mautrix-signal-daemon.service', 'priority': 1900}] if matrix_mautrix_signal_enabled else [])
+
+
(['matrix-mautrix-whatsapp.service'] if matrix_mautrix_whatsapp_enabled else [])
([{'name': 'matrix-mautrix-telegram.service', 'priority': 2000}] if matrix_mautrix_telegram_enabled else [])
+
+
(['matrix-mx-puppet-discord.service'] if matrix_mx_puppet_discord_enabled else [])
([{'name': 'matrix-mautrix-twitter.service', 'priority': 2000}] if matrix_mautrix_twitter_enabled else [])
+
+
(['matrix-mx-puppet-groupme.service'] if matrix_mx_puppet_groupme_enabled else [])
([{'name': 'matrix-mautrix-whatsapp.service', 'priority': 2000}] if matrix_mautrix_whatsapp_enabled else [])
+
+
(['matrix-mx-puppet-instagram.service'] if matrix_mx_puppet_instagram_enabled else [])
([{'name': 'matrix-mx-puppet-discord.service', 'priority': 2000}] if matrix_mx_puppet_discord_enabled else [])
+
+
(['matrix-mx-puppet-slack.service'] if matrix_mx_puppet_slack_enabled else [])
([{'name': 'matrix-mx-puppet-groupme.service', 'priority': 2000}] if matrix_mx_puppet_groupme_enabled else [])
+
+
(['matrix-mx-puppet-steam.service'] if matrix_mx_puppet_steam_enabled else [])
([{'name': 'matrix-mx-puppet-instagram.service', 'priority': 2000}] if matrix_mx_puppet_instagram_enabled else [])
+
+
(['matrix-mx-puppet-twitter.service'] if matrix_mx_puppet_twitter_enabled else [])
([{'name': 'matrix-mx-puppet-slack.service', 'priority': 2000}] if matrix_mx_puppet_slack_enabled else [])
+
+
(['matrix-sms-bridge.service'] if matrix_sms_bridge_enabled else [])
([{'name': 'matrix-mx-puppet-steam.service', 'priority': 2000}] if matrix_mx_puppet_steam_enabled else [])
+
+
(['matrix-cactus-comments.service'] if matrix_cactus_comments_enabled else [])
([{'name': 'matrix-mx-puppet-twitter.service', 'priority': 2000}] if matrix_mx_puppet_twitter_enabled else [])
+
+
(['matrix-client-cinny.service'] if matrix_client_cinny_enabled else [])
([{'name': 'matrix-sms-bridge.service', 'priority': 2000}] if matrix_sms_bridge_enabled else [])
+
+
(['matrix-client-element.service'] if matrix_client_element_enabled else [])
([{'name': 'matrix-cactus-comments.service', 'priority': 2000}] if matrix_cactus_comments_enabled else [])
+
+
(['matrix-client-hydrogen.service'] if matrix_client_hydrogen_enabled else [])
([{'name': 'matrix-client-cinny.service', 'priority': 2000}] if matrix_client_cinny_enabled else [])