Page MenuHomePhabricator

scap should allow restarting multiple services
Closed, ResolvedPublic

Description

The jobrunner system has two services:

  • jobrunner
  • jobchron

scap only let us define a single service via eg:

scap/scap.cfg
[global]
git_repo: jobrunner/jobrunner
...
service_name: jobrunner
service_port: 9005

And since jobchron does not open a TCP service, we would want to check its status via /usr/sbin/service jobchron status.

Revisions and Commits

Event Timeline

hashar created this task.Jun 6 2017, 10:02 AM
thcipriani removed a project: scap2.

D677 should handle multiple service restart/reloads.

And since jobchron does not open a TCP service, we would want to check its status via /usr/sbin/service jobchron status.

two thoughts here:

  1. This could be done by adding a check in scap/checks.yaml for the promote stage. If there's an nrpe check for this already it would be easiest (otherwise could use a command-type check):
checks:
  stage: promote
  type: nrpe
  command: check_jobchron_status
  1. scap will fail a deployment if a service restart is unsuccessful which may be all you need.

Landed D677, will close this task when new scap version (3.6.0) is released.