From Fedora Project Wiki

Revision as of 08:56, 23 June 2011 by Athmane (talk | contribs) (minor changes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

This test case tests if system logging is available, enabled by default and working as expected.

Setup

  1. Ensure that Package-x-generic-16.pngrsyslog packages is installed.

How to test

  1. Switch to root user: su -
  2. Check if rsyslog service is running and enabled at boot: systemctl status rsyslog.service
  3. Check if system logging facility is working (tail can be replaced with less in the following):
    1. tail /var/log/messages
    2. tail /var/log/secure

Expected Results

  1. rsyslog must be running and active at boot, the output of systemctl should be like:
    # systemctl status rsyslog.service
    rsyslog.service - System Logging Service
    	  Loaded: loaded (/lib/systemd/system/rsyslog.service)
    	  Active: active (running) since Thu, 23 Jun 2011 08:12:31 +0100; 23min ago
    	 Process: 576 ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service (code=exited, status=0/SUCCESS)
    	Main PID: 613 (rsyslogd)
    	  CGroup: name=systemd:/system/rsyslog.service
    		  └ 613 /sbin/rsyslogd -n -c 5
    
    
  2. Log files should not be empty.
  3. The last entries in logs should correspond to the current date and time.