Skip to content

Instantly share code, notes, and snippets.

View LightAutumnMelancholy's full-sized avatar
🏠
Working from home

LightAutumnMelancholy

🏠
Working from home
  • Spatial Grid 235, Sector 001, Terrestrial Object 3
View GitHub Profile
@LightAutumnMelancholy
LightAutumnMelancholy / skeleton-daemon.sh
Created February 22, 2017 21:56 — forked from shawnrice/skeleton-daemon.sh
A template to write a quick daemon as a bash script
#!/bin/sh
# This is a skeleton of a bash daemon. To use for yourself, just set the
# daemonName variable and then enter in the commands to run in the doCommands
# function. Modify the variables just below to fit your preference.
daemonName="DAEMON-NAME"
pidDir="."
pidFile="$pidDir/$daemonName.pid"