Skip to content
Snippets Groups Projects
Commit bf2199e9 authored by Helge Jung's avatar Helge Jung
Browse files

add start/stop script

parent e57891fb
No related branches found
No related tags found
No related merge requests found
bot.sh 0 → 100755
#!/bin/sh
mydir=$(readlink -f $0)
mydir=$(dirname "$mydir")
case $1 in
start)
[ ! -d "${mydir}/logs" ] && mkdir "${mydir}/logs"
"${mydir}/willie/willie.py" -c "${mydir}/ffpb.cfg" --fork
;;
stop)
"${mydir}/willie/willie.py" -c "${mydir}/ffpb.cfg" --quit
;;
*)
echo "Unknown command. Please give 'start' or 'stop'."
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