open5gs/support/logrotate/nextepc.in

17 lines
382 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-27 03:15:14 +00:00
create 640 nextepc nextepc
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
}