Skip to content

Instantly share code, notes, and snippets.

View shawnrice's full-sized avatar

Shawn Patrick Rice shawnrice

  • Cobbler
  • Greater New York City
View GitHub Profile
@shawnrice
shawnrice / skeleton-daemon.sh
Created April 19, 2014 07:22
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"

Keybase proof

I hereby claim:

  • I am shawnrice on github.
  • I am shawnrice (https://keybase.io/shawnrice) on keybase.
  • I have a public key ASAXHHClvO-w06Lf0UXO_uRL7iHbDqqw7HfQz6hK6uzA0wo

To claim this, I am signing this object: