Differential D6480 Diff 23547 site-modules/profile/templates/swh/deploy/graph/swhgraphdev.service.erb
Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/templates/swh/deploy/graph/swhgraphdev.service.erb
# Managed by puppet class profile::swh::deploy::graph | # Managed by puppet class profile::swh::deploy::graph | ||||
# Changes will be overwritten | # Changes will be overwritten | ||||
[Unit] | [Unit] | ||||
Description=swh graph | Description=swh graph | ||||
After=swhgraphshm.service | After=swhgraphshm.service | ||||
Requires=swhgraphshm.service | Requires=swhgraphshm.service | ||||
[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 -%> | |||||
Type=simple | Type=simple | ||||
User=<%= @user %> | User=<%= @user %> | ||||
Group=<%= @group %> | Group=<%= @group %> | ||||
ExecStart=/opt/swhgraph_venv/bin/swh graph rpc-serve -g /dev/shm/swh-graph/default/graph | ExecStart=/opt/swhgraph_venv/bin/swh graph rpc-serve -g /dev/shm/swh-graph/default/graph | ||||
[Install] | [Install] | ||||
WantedBy=multi-user.target | WantedBy=multi-user.target |