Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/templates/swh/deploy/graph/swh-graph.service.erb
Show All 13 Lines | |||||
Environment=SWH_SENTRY_ENVIRONMENT=<%= @sentry_environment %> | Environment=SWH_SENTRY_ENVIRONMENT=<%= @sentry_environment %> | ||||
<%- end -%> | <%- end -%> | ||||
<%- if !@sentry_swh_package.nil? and !@sentry_swh_package.empty? -%> | <%- if !@sentry_swh_package.nil? and !@sentry_swh_package.empty? -%> | ||||
Environment=SWH_MAIN_PACKAGE=<%= @sentry_swh_package %> | Environment=SWH_MAIN_PACKAGE=<%= @sentry_swh_package %> | ||||
<%- end -%> | <%- 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 -C <%= @config_file %> rpc-serve -g /dev/shm/swh-graph/default/graph | ||||
[Install] | [Install] | ||||
WantedBy=multi-user.target | WantedBy=multi-user.target |