Skip to content

Instantly share code, notes, and snippets.

View jbriard's full-sized avatar

jbriard

View GitHub Profile
@jbriard
jbriard / daemon.sh
Created December 23, 2016 16:20
Daemonized bash script
#!/bin/bash
set -e
PIDFILE="daemon.pid"
LOCKFILE="daemon.lock"
LOGFILE="daemon.log"
SELF=$0
ACTION=$1
ARGS="$*"