I hereby claim:
- I am jgeiger on github.
- I am jgeiger (https://keybase.io/jgeiger) on keybase.
- I have a public key whose fingerprint is 881A 1844 D71E 5741 C36E C5BD F733 E075 2CE8 36DF
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# This program is free software. It comes without any warranty, to | |
# the extent permitted by applicable law. You can redistribute it | |
# and/or modify it under the terms of the Do What The Fuck You Want | |
# To Public License, Version 2, as published by Sam Hocevar. See | |
# http://sam.zoy.org/wtfpl/COPYING for more details. | |
# | |
# Version 3, enhanced for Ubuntu 13.X+, Fedora 19+, and similar distros. |
I hereby claim:
To claim this, I am signing this object:
SHELL := /bin/bash | |
PROJECT := github.com/jgeiger/example | |
PKGS := $(shell go list ./... | grep -v /vendor) | |
EXECUTABLE := example | |
PKG := example | |
DOCKER_REGISTRY := jgeiger | |
DOCKER_IMAGE_NAME := example | |
GIT_COMMIT := $(shell git rev-parse --short HEAD 2>/dev/null) | |
.PHONY: build test golint docs $(PROJECT) $(PKGS) vendor |
#!/bin/bash | |
set -e | |
if [ $# -eq 0 ]; then | |
echo "USAGE: $0 plugin1 plugin2 ..." | |
exit 1 | |
fi | |
plugin_dir=/var/lib/jenkins/plugins |
50 characters of description (within reason) | |
Longer descriptions to 72 characters (within reason) | |
Longer descriptions to 72 characters (within reason) | |
Longer descriptions to 72 characters (within reason) | |
[#tracker_story_id] | |
or for multiple stories |
# This is an upstart script to keep mmonit running. | |
# Put this script here: | |
# | |
# /etc/init/mmonit.conf | |
# | |
# and reload upstart configuration: | |
# | |
# initctl reload-configuration | |
# | |
# You can manually start and stop monit like this: |
user www-data; | |
worker_processes 2; | |
worker_rlimit_nofile 8192; | |
events { | |
worker_connections 4096; | |
multi_accept on; | |
use epoll; | |
} |
description "nginx http daemon" | |
start on (filesystem and net-device-up IFACE=lo) | |
stop on runlevel [!2345] | |
env DAEMON=/usr/local/nginx/sbin/nginx | |
env PIDFILE=/usr/local/nginx/logs/nginx.pid | |
# Needed to allow Nginx to start, however, the wrong PID will be tracked | |
expect fork |
# nginx | |
check process nginx with pidfile /usr/local/nginx/logs/nginx.pid | |
start program = "/sbin/start nginx" | |
stop program = "/sbin/stop nginx" | |
if failed host 127.0.0.1 port 80 then restart | |
if cpu is greater than 40% for 2 cycles then alert | |
if cpu > 60% for 5 cycles then restart | |
if 10 restarts within 10 cycles then timeout |
check process redis-server | |
with pidfile "/var/run/redis.pid" | |
start program = "/sbin/start redis-server" | |
stop program = "/sbin/stop redis-server" | |
if 2 restarts within 3 cycles then timeout | |
if failed host 127.0.0.1 port 6379 then restart | |
if 5 restarts within 5 cycles then timeout |