Skip to content

Instantly share code, notes, and snippets.

View gigovich's full-sized avatar

Givi Khojanashvili gigovich

View GitHub Profile
@gigovich
gigovich / server.sh
Created December 11, 2012 07:26 — forked from ibdknox/server.sh
example daemon for lein processes
#!/bin/bash
name=webnoir
pidfile=/var/run/$name.pid
if [ -f "$pidfile" ]; then
pid=`cat $pidfile`
running=`ps p $pid |wc -l`
if [ $running -eq 1 ]; then
pid=