update logrotate and newsyslog following previous modification

This commit is contained in:
Sukchan Lee 2017-10-29 20:16:18 +09:00
parent baf6af79d6
commit 8c289c6d6e
7 changed files with 30 additions and 9 deletions

View File

@ -474,8 +474,11 @@ AC_CONFIG_FILES([support/systemd/nextepc-sgwd.service])
AC_CONFIG_FILES([support/systemd/nextepc-pgwd.service])
AC_CONFIG_FILES([support/systemd/nextepc-hssd.service])
AC_CONFIG_FILES([support/systemd/nextepc-pcrfd.service])
AC_CONFIG_FILES([support/systemd/Makefile])
AC_CONFIG_FILES([support/logrotate/nextepc])
AC_CONFIG_FILES([support/logrotate/Makefile])
AC_CONFIG_FILES([support/newsyslog/nextepc.conf])
AC_CONFIG_FILES([support/newsyslog/Makefile])
AC_CONFIG_FILES([support/Makefile])
AC_CONFIG_FILES([test/Makefile])
AC_CONFIG_FILES([Makefile])

View File

@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
SUBDIRS = config freeDiameter
SUBDIRS = config freeDiameter systemd logrotate newsyslog
MAINTAINERCLEANFILES = Makefile.in
MOSTLYCLEANFILES = *.stackdump

View File

@ -0,0 +1,4 @@
EXTRA_DIST = nextepc.in
MAINTAINERCLEANFILES = Makefile.in
MOSTLYCLEANFILES = *.stackdump

View File

@ -8,8 +8,8 @@
postrotate
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`
if [ -e @LOCALSTATE_DIR@/run/nextepc-$i/pid ] ; then
kill -HUP `cat @LOCALSTATE_DIR@/run/nextepc-$i/pid`
fi
done
endscript

View File

@ -0,0 +1,4 @@
EXTRA_DIST = nextepc.conf.in
MAINTAINERCLEANFILES = Makefile.in
MOSTLYCLEANFILES = *.stackdump

View File

@ -1,9 +1,9 @@
# truncate rails logs every day at midnight, keep 14 previous logs, compress previous logs
#
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
@LOCALSTATE_DIR@/log/nextepc/pcrfd.log 644 14 * $D0 GZ @LOCALSTATE_DIR@/run/nextepc/pcrfd.pid`
@LOCALSTATE_DIR@/log/nextepc/pgwd.log 644 14 * $D0 GZ @LOCALSTATE_DIR@/run/nextepc/pcrfd.pid`
@LOCALSTATE_DIR@/log/nextepc/sgwd.log 644 14 * $D0 GZ @LOCALSTATE_DIR@/run/nextepc/sgwd.pid`
@LOCALSTATE_DIR@/log/nextepc/hssd.log 644 14 * $D0 GZ @LOCALSTATE_DIR@/run/nextepc/hssd.pid`
@LOCALSTATE_DIR@/log/nextepc/mmed.log 644 14 * $D0 GZ @LOCALSTATE_DIR@/run/nextepc/mmed.pid`
@LOCALSTATE_DIR@/log/nextepc/nextepc.log 644 14 * $D0 GZ @LOCALSTATE_DIR@/run/nextepc/epcd.pid`
@LOCALSTATE_DIR@/log/nextepc/pcrf.log 644 14 * $D0 GZ @LOCALSTATE_DIR@/run/nextepc-pcrfd/pid`
@LOCALSTATE_DIR@/log/nextepc/pgw.log 644 14 * $D0 GZ @LOCALSTATE_DIR@/run/nextepc-pgwd/pid`
@LOCALSTATE_DIR@/log/nextepc/sgw.log 644 14 * $D0 GZ @LOCALSTATE_DIR@/run/nextepc-sgwd/pid`
@LOCALSTATE_DIR@/log/nextepc/hss.log 644 14 * $D0 GZ @LOCALSTATE_DIR@/run/nextepc-hssd/pid`
@LOCALSTATE_DIR@/log/nextepc/mme.log 644 14 * $D0 GZ @LOCALSTATE_DIR@/run/nextepc-mmed/pid`
@LOCALSTATE_DIR@/log/nextepc/nextepc.log 644 14 * $D0 GZ @LOCALSTATE_DIR@/run/nextepc-epcd/pid`

View File

@ -0,0 +1,10 @@
EXTRA_DIST = \
nextepc-mmed.service.in \
nextepc-pgwd.service.in \
nextepc-hssd.service.in \
nextepc-pcrfd.service.in \
nextepc-sgwd.service.in \
$(NULL)
MAINTAINERCLEANFILES = Makefile.in
MOSTLYCLEANFILES = *.stackdump