2013-06-08 04:47:18 +08:00
|
|
|
bbb-callbacks
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
|
|
It's a webapp which allows to perform certain callbacks when an event happens in a bigbluebutton session.
|
|
|
|
|
|
|
|
The webapp uses node.js and redis.
|
|
|
|
|
|
|
|
For run: node app.js
|
2013-09-13 23:34:51 +08:00
|
|
|
|
|
|
|
To run in production, put bbb-callback.sh into /etc/init.d/
|
|
|
|
See: https://www.exratione.com/2013/02/nodejs-and-forever-as-a-service-simple-upstart-and-init-scripts-for-ubuntu/
|
|
|
|
|
|
|
|
1. Install node by downloading source from http://nodejs.org/download/. Extract the downloaded file.
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
|
2013-09-13 23:37:25 +08:00
|
|
|
2. Install forever
|
2013-09-13 23:34:51 +08:00
|
|
|
sudo npm -g install forever
|
|
|
|
|
2013-09-13 23:37:25 +08:00
|
|
|
3. Copy the init.d script
|
2013-09-13 23:34:51 +08:00
|
|
|
sudo cp bbb-callback.sh /etc/init.d/bbb-callback.sh
|
|
|
|
sudo chmod a+x /etc/init.d/bbb-callback.sh
|
|
|
|
sudo update-rc.d bbb-callback.sh defaults
|
|
|
|
|
2013-09-13 23:37:25 +08:00
|
|
|
4. Copy bbb-callback dir to /usr/local/bigbluebutton/bbb-callback
|
|
|
|
|
|
|
|
5. How to start/stop the service
|
2013-09-13 23:34:51 +08:00
|
|
|
sudo service bbb-callback.sh start
|
|
|
|
sudo service bbb-callback.sh status
|
|
|
|
sudo service bbb-callback.sh restart
|
|
|
|
sudo service bbb-callback.sh stop
|
|
|
|
|