mmb/meme_captain_web

View on GitHub
docker/runit/monit/run

Summary

Maintainability
Test Coverage
#!/bin/bash

export NPROC=`nproc`
NUM_DELAYED_JOB_WORKERS=$((NPROC - 1))
NUM_DELAYED_JOB_WORKERS=$((
  NUM_DELAYED_JOB_WORKERS > 0 ? NUM_DELAYED_JOB_WORKERS : 1
  ))
export NUM_DELAYED_JOB_WORKERS

erb /app/docker/monitrc.erb > /app/docker/monitrc

chmod 0700 /app/docker/monitrc

exec /usr/local/bin/monit -I -v -c /app/docker/monitrc