Re: [evlog-dev] [Patch] 1.5.3: Evlog SysV init script
Hien Nguyen <[email protected]> Wed, 05 Nov 2003 14:43:54 -0800
| Newsgroups | gmane.linux.kernel.event-logging |
|---|---|
| Message-ID | <[email protected]> |
Hi Seo, Thanks for the patch, I will check this in CVS tree. Regards, Hien. O'Riordain, Seosamh wrote: > Hi, > > I've attached a simple patch for the evlog init script that I've found > useful. > It basically enables it read startup options for the evlog daemon from > /etc/sysconfig/evlog. This file can contain a line with the command line > options > specified inside the EVLOGD_OPTIONS variable. > This is similar in behaviour to other subsystems (eg syslog). > For example, if one only needs to send logs to a remote > host and not to local files, one could add the -u option to this file > and then > do a restart (i.e EVLOGD_OPTIONS="-u"). > Basically it means that one would not have to modify the init > script itself. > > Regards, > Seo > > *** evlog.orig Wed Nov 5 09:31:07 2003 > --- evlog Wed Nov 5 09:32:12 2003 > *************** > *** 17,22 **** > --- 17,27 ---- > > [ -f /sbin/evlogd ] || exit 0 > > + # Source config > + EVLOGD_OPTIONS="" > + if [ -f /etc/sysconfig/evlog ] ; then > + . /etc/sysconfig/evlog > + fi > > RETVAL=0 > > *************** > *** 36,44 **** > > if [ ! -z "$REDHAT" ] > then > ! daemon /sbin/evlogd > else > ! /sbin/evlogd > fi > sleep 1 > RETVAL=$? > --- 41,49 ---- > > if [ ! -z "$REDHAT" ] > then > ! daemon /sbin/evlogd $EVLOGD_OPTIONS > else > ! /sbin/evlogd $EVLOGD_OPTIONS > fi > sleep 1 > RETVAL=$? > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/