Browse Source

Create cert-mon logfile config

This commit defines the cert-mon logfile config.

In addition, the package directory is reorganized to have a files
subdirectory, and to drop the obsolete PKG-INFO file.

Change-Id: Iec2b39b3b080c823be7f00ee978baa223d05b041
Story: 2008251
Task: 41115
Signed-off-by: Don Penney <don.penney@windriver.com>
changes/07/758607/1
Don Penney 8 months ago
parent
commit
56981db804
8 changed files with 25 additions and 17 deletions
  1. +0
    -12
      sysinv/cert-mon/PKG-INFO
  2. +1
    -3
      sysinv/cert-mon/centos/build_srpm.data
  3. +7
    -2
      sysinv/cert-mon/centos/cert-mon.spec
  4. +0
    -0
      sysinv/cert-mon/files/LICENSE
  5. +0
    -0
      sysinv/cert-mon/files/cert-mon
  6. +14
    -0
      sysinv/cert-mon/files/cert-mon.logrotate
  7. +0
    -0
      sysinv/cert-mon/files/cert-mon.service
  8. +3
    -0
      sysinv/cert-mon/files/cert-mon.syslog

+ 0
- 12
sysinv/cert-mon/PKG-INFO View File

@ -1,12 +0,0 @@
Metadata-Version: 1.1
Name: cert-mon
Version: 1.0
Summary: StarlingX Certificate Montior Package
Home-page:
Author: Windriver
Author-email: info@windriver.com
License: Apache-2.0
Description: StarlingX Certificate Monitor Package
Platform: UNKNOWN

+ 1
- 3
sysinv/cert-mon/centos/build_srpm.data View File

@ -1,4 +1,2 @@
SRC_DIR="."
COPY_LIST_TO_TAR="LICENSE"
EXCLUDE_LIST_FROM_TAR="centos opensuse"
SRC_DIR="files"
TIS_PATCH_VER=PKG_GITREVCOUNT

+ 7
- 2
sysinv/cert-mon/centos/cert-mon.spec View File

@ -8,6 +8,7 @@ Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: systemd-devel
%define ocf_resourced /usr/lib/ocf/resource.d
@ -27,8 +28,8 @@ StarlingX Certificate Monitor Package
%install
install -m 755 -p -D cert-mon %{buildroot}/usr/lib/ocf/resource.d/platform/cert-mon
install -m 644 -p -D cert-mon.service %{buildroot}%{_unitdir}/cert-mon.service
%post
install -m 644 -p -D cert-mon.syslog %{buildroot}%{_sysconfdir}/syslog-ng/conf.d/cert-mon.conf
install -m 644 -p -D cert-mon.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/cert-mon.conf
%clean
@ -43,3 +44,7 @@ rm -rf $RPM_BUILD_ROOT
# systemctl service files
%{_unitdir}/cert-mon.service
# logfile config files
%{_sysconfdir}/syslog-ng/conf.d/cert-mon.conf
%{_sysconfdir}/logrotate.d/cert-mon.conf

sysinv/cert-mon/LICENSE → sysinv/cert-mon/files/LICENSE View File


sysinv/cert-mon/cert-mon → sysinv/cert-mon/files/cert-mon View File


+ 14
- 0
sysinv/cert-mon/files/cert-mon.logrotate View File

@ -0,0 +1,14 @@
/var/log/cert-mon.log
{
nodateext
size 10M
start 1
rotate 20
missingok
notifempty
compress
sharedscripts
postrotate
systemctl reload syslog-ng > /dev/null 2>&1 || true
endscript
}

sysinv/cert-mon/cert-mon.service → sysinv/cert-mon/files/cert-mon.service View File


+ 3
- 0
sysinv/cert-mon/files/cert-mon.syslog View File

@ -0,0 +1,3 @@
filter f_certmon { facility(local6) and program(cert-mon); };
destination d_certmon { file("/var/log/cert-mon.log"); };
log { source(s_src); filter(f_certmon); destination(d_certmon); };

Loading…
Cancel
Save