Hey all, I've been playing around with the psionic logsentry program and
I made both src and binary rpm's to run on SuSE 7.2. What I'm wondering
though is the best way to automate the execution of the program at certain
times. What I've come up with is the following within rc.config
#
# psionic logsentry settings
#
# should logsentry be started? (yes/no)
START_LOGCHECK="yes"
#
# at which intervals should logsentry be run?
# ie: (hourly/daily/weekly/monthly)
LOGCHECK_TIME="daily"
I then created an execution script in each of the cron folders located
in /etc, that check the variables within rc.config and execute according
to the setting specified. In otherwords, if you told it hourly, then the
script in cron.hourly would be the only one executed, if daily is chosen
then only the crond.daily would be executed, etc..
#!/bin/sh
#
#
# logcheck. This script will run psionic logcheck at specified time
# based on variables set within rc.config.
#
# Copyright (c) 2001-2002 S.Toms