#!/bin/sh #---------------------------------------------------------------------------------- # /var/install/bin/pre-nfs-server-view-log - extract log information # # Creation: 2013-06-02 jed # Last Update: $Id$ # # Copyright (c) 2001-@@YEAR@@ the eisfair team, team(at)eisfair(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------------- module_name='nfs-server' log_dir=/var/log log_file=${log_dir}/${module_name}.log ### view log file ### grep -i -E "kernel: nfsd:|knfsd|kernel: rpc:|sm-notify\[|rpc.idmapd\[|rpc.statd\[|rpc.mountd\[|rpcbind:" ${log_dir}/messages > ${log_file} if [ -z "${log_file}" -o ! -s "${log_file}" ] then rm -f ${log_file} fi