X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=build%2Fscripts%2Fstart_du_logging.sh;fp=build%2Fscripts%2Fstart_du_logging.sh;h=d53afc992803df85cdd0ebea74f2010d44d76c9a;hb=bfd03f1e56692fc661435811b185d907f79808b2;hp=0000000000000000000000000000000000000000;hpb=093afd2e854d73d697233396fb9c74ed67bdd615;p=o-du%2Fl2.git diff --git a/build/scripts/start_du_logging.sh b/build/scripts/start_du_logging.sh new file mode 100755 index 000000000..d53afc992 --- /dev/null +++ b/build/scripts/start_du_logging.sh @@ -0,0 +1,34 @@ +################################################################################ +# Copyright (c) [2017-2019] [Radisys] # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################ +# This script is used to log ODU-High +#!/bin/sh + +ROOT_DIR=$PWD +d=`date +%Y_%m_%d_%I_%M_%S` + +touch $ROOT_DIR/../odu/"log_odu_$d.txt" +chmod -c 777 $ROOT_DIR/../odu/"log_odu_$d.txt" +echo "if \$programname == \"ODU\" then" >> \ +/etc/rsyslog.d/rsyslog_loginauth.conf +echo "$ROOT_DIR/../odu/log_odu_$d.txt" >> \ +/etc/rsyslog.d/rsyslog_loginauth.conf +echo $ROOT_DIR +systemctl restart rsyslog + + +#********************************************************************** +# End of file +#**********************************************************************