1 ################################################################################
2 # Copyright (c) [2017-2019] [Radisys]
5 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
12 # http://www.apache.org/licenses/LICENSE-2.0
15 # Unless required by applicable law or agreed to in writing, software
17 # distributed under the License is distributed on an "AS IS" BASIS,
19 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
21 # See the License for the specific language governing permissions
23 # limitations under the License.
25 ################################################################################
30 d=`date +%Y_%m_%d_%I_%M_%S`
32 touch $ROOT_DIR/"log_cu_stub_$d.txt"
33 chmod -c 777 $ROOT_DIR/"log_cu_stub_$d.txt"
34 touch /etc/rsyslog.d/rsyslog_loginauth.conf
35 cp /dev/null /etc/rsyslog.d/rsyslog_loginauth.conf
36 echo "if \$programname == \"CU_STUB\" then" >> \
37 /etc/rsyslog.d/rsyslog_loginauth.conf
38 echo "$ROOT_DIR/../cu_stub/log_cu_stub_$d.txt" >> \
39 /etc/rsyslog.d/rsyslog_loginauth.conf
40 systemctl restart rsyslog
43 #**********************************************************************
45 #**********************************************************************