Differential D2576 Diff 9197 site-modules/profile/templates/swh/deploy/scheduler/swh-scheduler-listener.service.erb
Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/templates/swh/deploy/scheduler/swh-scheduler-listener.service.erb
Show All 9 Lines | |||||
[Service] | [Service] | ||||
User=<%= @user %> | User=<%= @user %> | ||||
Group=<%= @group %> | Group=<%= @group %> | ||||
Type=simple | Type=simple | ||||
Environment=SWH_LOG_TARGET=journal | Environment=SWH_LOG_TARGET=journal | ||||
<%- if !@sentry_dsn.empty? -%> | <%- if !@sentry_dsn.empty? -%> | ||||
Environment=SWH_SENTRY_DSN=<%= @sentry_dsn %> | Environment=SWH_SENTRY_DSN=<%= @sentry_dsn %> | ||||
<%- end -%> | <%- end -%> | ||||
<%- if !@sentry_environment.empty? -%> | |||||
Environment=SWH_SENTRY_ENVIRONMENT=<%= @sentry_environment %> | |||||
<%- end -%> | |||||
<%- if !@sentry_swh_package.empty? -%> | |||||
Environment=SWH_MAIN_PACKAGE=<%= @sentry_swh_package %> | |||||
<%- end -%> | |||||
ExecStart=/usr/bin/swh --log-level <%= @listener_log_level %> scheduler --config-file <%= @config_file %> start-listener | ExecStart=/usr/bin/swh --log-level <%= @listener_log_level %> scheduler --config-file <%= @config_file %> start-listener | ||||
Restart=always | Restart=always | ||||
RestartSec=10 | RestartSec=10 | ||||
[Install] | [Install] | ||||
WantedBy=multi-user.target | WantedBy=multi-user.target |