12345678910111213141516171819202122232425262728293031 |
- #!/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
- ;;
- 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', 'stop' or 'restart'."
- exit 1
- ;;
- esac
|