The osw-service RPM package provides a script to run the OSWatcher at system boot, and to stop it down gracefully at system shutdown. It provides an "osw" service that can be controlled using the standard Linux init(1) script controls:
# /sbin/chkconfig oswbb on
# /sbin/service oswbb start
The osw-service RPM package is available as an attachment to this note. Download and install it as any other RPM package. A source RPM is provided for completeness.
Validating The RPM Packages
You can validate the RPM packages by comparing their checksums with these:
$ md5sum oswbb-service*.rpm
dc4f892aa58889e78c1f50e41d694c20 oswbb-service-7.2.0-1.noarch.rpm
4cedf4f97bf9366e8c6ba313973fa9b8 oswbb-service-7.2.0-1.src.rpm
Before starting the service, first change the settings in the /etc/oswbb.conf configuration file to fit your situation:
# Set OSW_HOME to the directory where your OSWatcher tools are installed
OSW_HOME='/opt/osw'
# Set OSW_INTERVAL to the number of seconds between collections
OSW_INTERVAL='60'
# Set OSW_RETENTION to the number of hours logs are to be retained
OSW_RETENTION='48'
# Set OSW_USER to the owner of the OSWHOME directory
OSW_USER='root'
# Set OSW_COMPRESSION to the desired compression scheme
OSW_COMPRESSION='bzip2'
# Set OSW_ARCHIVE to the location to generate the logs
OSW_ARCHIVE='archive'
Once this is done, the command:
# /sbin/service oswbb start
will start the OSWatcher tool upon every boot.
The OSWatcher logs will be stored in ${OSW_ARCHIVE); the default value is the archive/ subdirectory as in earlier versions.
Ref: How To Start OSWatcher Black Box (OSWBB) Every System Boot Using RPM oswbb-service (Doc ID 580513.1)
No hay comentarios:
Publicar un comentario