Skip to content

Instantly share code, notes, and snippets.

@tarsnake
tarsnake / gist:b1186cf8e01335a47c07
Last active August 29, 2015 14:08 — forked from FlaviuSim/gist:2510028
sample ini for supervisord
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
[supervisord]
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
@tarsnake
tarsnake / supervisord.sh
Last active August 29, 2015 14:08 — forked from danmackinlay/supervisord.sh
supervisord init script
#! /bin/sh
### BEGIN INIT INFO
# Provides: supervisord
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
@tarsnake
tarsnake / .gitignore
Last active August 29, 2015 14:08 — forked from starenka/.gitignore
.idea/*
*.pyc