Skip to content
Snippets Groups Projects
Commit ddf4dd85 authored by Erick Hitter's avatar Erick Hitter
Browse files

Start with something for an init script

See https://stackoverflow.com/a/21413606

Will replace with something better
parent c5e3ad91
No related branches found
No related tags found
No related merge requests found
init.sh 0 → 100755
#!/bin/sh
LISTENER_BIN=/usr/local/eth-log-alerting/pipe.sh
test -x $LISTENER_BIN || exit 5
PIDFILE=/var/run/eth_log_alerting.pid
case "$1" in
start)
echo -n "Starting log alerting.... "
startproc -f -p $PIDFILE $LISTENER_BIN
echo "running"
;;
*)
echo "Usage: $0 start"
exit 1
;;
esac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment