     autorestart             : yes
     startsecs               : 10
     startretries            : 5
-    stopsignal              : options.stopsignal or 'TERM'
+    stopsignal              : 'TERM'
     stopwaitsecs            : 10
     stopasgroup             : yes
     killasgroup             : yes

    stdout_logfile_backups  : 10
    stdout_capture_maxbytes : '1MB'
    stderr_logfile          : "%(ENV_KONFIG_SUPERVISORD_LOGDIR)s/#{app}.log"

  for key, opt of options.supervisord
    section[key] = opt

  if section.numprocs > 1 and options.ports?
    for key, port of options.ports

_  = require 'lodash'
fs = require 'fs'

{ isAllowed } = require './grouptoenvmapping'
{ generateCountlySupervisord } = require './countly/generateConfig'

