|
@@ -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
|