# Note that Silk 0.3.0 and later does not require any changes from the
# default supervisord.conf that ships with Ubuntu. All files are included
# in the supervisord's conf.d directory.
file = '/etc/supervisor/supervisord.conf'
if contains(file, "files = /srv/\*/conf/supervisord.conf", use_sudo=True):
_green("FIXING OLD SUPERVISOR CONFIG BUG")
"files = /etc/supervisor/conf.d/*.conf",
"files = /srv/*/conf/supervisord.conf"
good = ("files = /etc/supervisor/conf.d/*.conf "
txt = sudo('cat %s' % file)
if not exists(_join(SRV_ROOT, procname)):
sudo('rm /tmp/%s' % sock)
- # Clean up supervisord includes that have no associated site. There
- # shouldn't be any since stop_other_processes handles those, but you never
- configs = [x for x in _list_dir('/etc/supervisor/conf.d') if _is_this_site(x)]
- sudo('rm %s' % _join('/etc/supervisor/conf.d', config))
# TODO: clean out the pip-* folders that can build up in /tmp
# TODO: figure out a way to clean out pybundle files in /srv/_silk_build
# that aren't needed anymore.