Skip to content

Commit

Permalink
Added bbb-record --clean to clean out process and publish log files f…
Browse files Browse the repository at this point in the history
…or recordings
  • Loading branch information
ffdixon committed Aug 22, 2012
1 parent bcafbc6 commit 9fa7cf3
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion bigbluebutton-config/bin/bbb-record
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ usage() {
echo
echo "Monitoring:"
echo " --watch Watch processing of recordings"
echo
echo "Administration:"
echo " --rebuild [meetingID] rebuild the output for meetingID"
echo " --republish [meetingID] republish the recording for meetingID"
echo " --republish [meetingID] republish the recording for meetingID"
echo " --delete [meetingID] delete one meeting and recording"
echo " --deletall delete all meetings and recordings"
echo " --debug check for recording errors"
Expand Down Expand Up @@ -208,6 +210,13 @@ while [ $# -gt 0 ]; do
continue
fi

if [ "$1" = "-clean" -o "$1" = "--clean" ]; then
need_root
CLEAN=1
shift
continue
fi

usage
exit 1
done
Expand Down Expand Up @@ -242,6 +251,15 @@ if [ $REPUBLISH ]; then
fi
fi

if [ $CLEAN ]; then
sudo /etc/init.d/bbb-record-core stop
for type in $TYPES; do
echo " clearning logs in /var/log/bigbluebutton/$type"
find /var/log/bigbluebutton/$type -name "*.log" -exec sudo rm '{}' \;
done
sudo /etc/init.d/bbb-record-core start
fi

if [ $DELETE ]; then
if [ ! -z "$MEETING_ID" ]; then
for type in $TYPES; do
Expand Down

0 comments on commit 9fa7cf3

Please sign in to comment.