TT#12789 add defaults file item for NFS mount options

Change-Id: I9ab9d6883c7452de442c8921997ee3f0c33ade1d
changes/57/12257/1
Richard Fuchs 9 years ago
parent 46d1498801
commit 305fbeddee

@ -9,3 +9,4 @@ MUST_NFS=no
NFS_HOST=192.168.1.1
NFS_REMOTE_PATH=/var/recordings
NFS_LOCAL_MOUNT=/var/lib/rtpengine-recording # must match output-dir if used
NFS_OPTIONS=hard,intr,tcp

@ -31,6 +31,7 @@ if [ "$RUN_RTPENGINE_RECORDING" != "yes" ]; then
exit 0
fi
[ -z "$PIDFILE" ] && PIDFILE="/var/run/rtpengine-recording.pid"
[ -z "$NFS_OPTIONS" ] && NFS_OPTIONS="hard,tcp,intr"
set -e
@ -105,7 +106,7 @@ case "$1" in
if ! egrep -q '^[^ :]+:[^ :]+ '"$NFS_LOCAL_MOUNT"' nfs.? ' /proc/mounts; then
log_progress_msg "Mounting NFS share"
test -d "$NFS_LOCAL_MOUNT" || mkdir -p "$NFS_LOCAL_MOUNT"
mount -t nfs -o hard,intr,tcp "$NFS_HOST":"$NFS_REMOTE_PATH" "$NFS_LOCAL_MOUNT"
mount -t nfs -o "$NFS_OPTIONS" "$NFS_HOST":"$NFS_REMOTE_PATH" "$NFS_LOCAL_MOUNT"
fi
fi

Loading…
Cancel
Save