Skip to content

Instantly share code, notes, and snippets.

@RobertCNelson
Created July 8, 2014 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobertCNelson/337a72924a44ed414e06 to your computer and use it in GitHub Desktop.
Save RobertCNelson/337a72924a44ed414e06 to your computer and use it in GitHub Desktop.
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: led_aging.sh
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
x=$(/bin/ps -ef | /bin/grep "[l]ed_acc")
if [ ! -n "$x" -a -x /usr/bin/led_acc ]; then
/usr/bin/led_acc &
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment