Differential D6482 Diff 23549 site-modules/profile/templates/swh/deploy/journal/swh-indexer-journal-client.service.erb
Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/templates/swh/deploy/journal/swh-indexer-journal-client.service.erb
# Indexer Journal Client unit file | # Indexer Journal Client unit file | ||||
# Managed by puppet class profile::swh::deploy::indexer_journal_client | # Managed by puppet class profile::swh::deploy::indexer_journal_client | ||||
# Changes will be overwritten | # Changes will be overwritten | ||||
[Unit] | [Unit] | ||||
Description=Software Heritage Indexer Journal Client | Description=Software Heritage Indexer Journal Client | ||||
After=network.target | After=network.target | ||||
[Service] | [Service] | ||||
<%- if !@sentry_dsn.nil? and !@sentry_dsn.empty? -%> | |||||
Environment=SWH_SENTRY_DSN=<%= @sentry_dsn %> | |||||
<%- end -%> | |||||
<%- if !@sentry_environment.nil? and !@sentry_environment.empty? -%> | |||||
Environment=SWH_SENTRY_ENVIRONMENT=<%= @sentry_environment %> | |||||
<%- end -%> | |||||
<%- if !@sentry_swh_package.nil? and !@sentry_swh_package.empty? -%> | |||||
Environment=SWH_MAIN_PACKAGE=<%= @sentry_swh_package %> | |||||
<%- end -%> | |||||
User=<%= @user %> | User=<%= @user %> | ||||
Group=<%= @group %> | Group=<%= @group %> | ||||
Type=simple | Type=simple | ||||
ExecStart=/usr/bin/swh indexer --config-file <%= @config_path %> journal-client | ExecStart=/usr/bin/swh indexer --config-file <%= @config_path %> journal-client | ||||
Restart=always | Restart=always | ||||
RestartSec=10 | RestartSec=10 | ||||
[Install] | [Install] | ||||
WantedBy=multi-user.target | WantedBy=multi-user.target |