LogoopenSUSE Build Service > Projects
Sign Up | Log In


Introduction http://www.linux.com/archive/feature/141231

From http://freshmeat.net/projects/ramlog/
ramlog acts as a system daemon that maintains log files in memory instead of hard disk while the system is running. On startup, it creates a ramdisk, copies files from /var/log into the ramdisk, and mounts the ramdisk as /var/log. All logs after that will be updated on the ramdisk. When shutting down or restarting the service, it saves log files back to hard disk. This service drastically reduces the frequency of hard disk usage, which can be useful when the system runs on battery or uses flash memory instead of a hard disk.

Steps for manual installation of ramlog on Fedora: (Steps for other systems may vary)

1. add or update kernel paramter ramdisk_size=xxx where xxx is amount of memory for the ramdisk ramlog will use you should update it in your /etc/grub.conf or /etc/lilo.conf file
2. cp ramlog-1.0.0-1 /etc/init.d/ramlog
3. cp ramlog.8.gz /usr/share/man/man8/ramlog.8.gz
4. cp ramlog.cron /etc/cron.daily #or to other dir based on your need
5. /sbin/chkconfig --add ramlog
6. /sbin/chkconfig ramlog on
7. restart your system
Version 2

How to install Ramlog on Fedora, Redhat or CentOS:

1. Download it:
$ wget http://www.tremende.com/ramlog/download/ramlog-2.0.0.noarch.rpm

2. Log in as root and install it:
$ su
# rpm -ivh ramlog-2.0.0.noarch.rpm

3. Reboot
# reboot

File content:-
# rpm -qlp ramlog-1.1.0-19.1.noarch.rpm
warning: ramlog-1.1.0-19.1.noarch.rpm: Header V3 DSA signature: NOKEY, key ID fb666c9e

HOME -> http://www.tremende.com/ramlog/
The tar.gz file [ramlog-2.0.0.tar.gz] has this content 

# tar -ztvf   ramlog-2.0.0.tar.gz 
drwxr-xr-x tofu/tofu         0 2010-04-12 22:45 ramlog-2.0.0/
-rwxr-xr-x 1001/1001     29492 2010-04-12 17:23 ramlog-2.0.0/ramlog
-rwxr-xr-x tofu/tofu      2428 2010-04-12 22:45 ramlog-2.0.0/ramlog.8.gz
-rwxr-xr-x tofu/tofu       705 2010-03-13 16:54 ramlog-2.0.0/README
-rwxr-xr-x tofu/tofu         6 2010-03-08 12:45 ramlog-2.0.0/VERSION
-rwxr-xr-x tofu/tofu      1202 2010-03-08 11:46 ramlog-2.0.0/ramlog.conf
-rw-r--r-- tofu/tofu       198 2010-04-07 08:35 ramlog-2.0.0/ramlog.conf.upstart
-rwxr-xr-x tofu/tofu      1140 2010-04-12 22:14 ramlog-2.0.0/ChangeLog
-rwxr-xr-x tofu/tofu       972 2010-03-13 04:03 ramlog-2.0.0/INSTALL
-rwxr-xr-x tofu/tofu        75 2008-06-08 12:28 ramlog-2.0.0/ramlog.cron
-rwxr-xr-x tofu/tofu     32398 2008-01-13 11:08 ramlog-2.0.0/COPYING
-rwxr-xr-x tofu/tofu      1760 2010-03-13 04:07 ramlog-2.0.0/FAQ
-rwxr-xr-x tofu/tofu        61 2008-02-23 09:08

Last compile
build21 finished "build ramlog.spec" at Fri Aug 14 11:43:03 UTC 2009.

Last RPMLINT report:
RPMLINT report:
ramlog.noarch: W: incoherent-subsys /etc/init.d/ramlog $prog
The filename of your lock file in /var/lock/subsys/ is incoherent with your
actual init script name. For example, if your script name is httpd, you have
to use 'httpd' as the filename in your subsys directory. It is also possible
that rpmlint gets this wrong, especially if the init script contains
nontrivial shell variables and/or assignments. These cases usually manifest
themselves when rpmlint reports that the subsys name starts a with '$'; in
these cases a warning instead of an error is reported and you should check the
script manually.

ramlog.noarch: W: no-version-in-last-changelog
ramlog.src: W: no-version-in-last-changelog
The last changelog entry doesn't contain a version. Please insert the version
that is coherent with the version of the package and rebuild it.

2 packages and 0 specfiles checked; 0 errors, 3 warnings.
... creating baselibs
... saving built packages
... comparing built packages with the former built
compare /.build.oldpackages/ramlog-1.1.0-19.1.src.rpm /usr/src/packages/SRPMS/ramlog-1.1.0-22.1.src.rpm
--- /tmp/tmp.yNfsuzXVjP 2009-08-14 11:43:03.000000000 +0000
+++ /tmp/tmp.jqyfB35bLH 2009-08-14 11:43:03.000000000 +0000
@@ -19,7 +19,7 @@
- 1212926400 Jan Andrejkovic <jandrejkovic@gmail.com> - version 1.1.0 released:
+ 1212926400 Jan Andrejkovic <jandrejkovic@gmail.com> - 1.1.0 released:
- added support for Ubuntu
- added support for SELinux - now ramlog saves security context
of all files in /var/log

build21 finished "build ramlog.spec" at Fri Aug 14 11:43:03 UTC 2009.

System halted.
build: extracting built packages...

other info from:

uses blocked
binutils, gcc44, glibc, libltdl7, libmpfr1, libncurses5, libppl7, libppl_c2, libtool, pcre, perl, rpm, zlib

Source Files

Filename Size Changed Actions
ramlog-1.1.0.tar.gz 20.3 KB almost 9 years ago Download File
ramlog.spec 4.54 KB over 8 years ago Download File

Comments for home:doiggl (0)