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

bot.sh: support 'restart' and recognize 'reload' parameter

parent 535adb7c
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,20 @@ case $1 in
stop)
"${mydir}/willie/willie.py" -c "${mydir}/ffpb.cfg" --quit
;;
restart)
"$0" stop
sleep 2
"$0" start
;;
reload)
echo "Not supported by script. Issue '!reload ffpb' in a query to reload the ffpb module."
exit 2
;;
*)
echo "Unknown command. Please give 'start' or 'stop'."
echo "Unknown command. Please give 'start', 'stop' or 'restart'."
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