open5gs/support/logrotate/nextepc.in

17 lines
397 B
Plaintext
Raw Normal View History

2017-10-24 11:52:58 +00:00
@LOCALSTATE_DIR@/log/nextepc/*.log {
daily
sharedscripts
missingok
compress
rotate 14
2017-10-24 11:52:58 +00:00
create 640 @current_user@ @current_group@
postrotate
2017-10-24 11:52:58 +00:00
for i in pcrfd pgwd sgwd hssd mmed epcd; do
if [ -e @LOCALSTATE_DIR@/run/nextepc/$i.pid ] ; then
kill -HUP `cat @LOCALSTATE_DIR@/run/nextepc/$i.pid`
fi
done
endscript
}