Skip to content

Instantly share code, notes, and snippets.

View an85888's full-sized avatar

an85888 an85888

View GitHub Profile
@an85888
an85888 / skeleton-daemon.sh
Last active December 21, 2019 17:31 — 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"