Re: [evlog-dev] --ANNOUNCE-- evlog-1.5.0 is available

Hien Nguyen <[email protected]> Mon, 13 Jan 2003 15:40:29 -0800
Newsgroups gmane.linux.kernel.event-logging
Message-ID <[email protected]>
Steve,

I found the problem, our RPM will not work correctly with -U option. It 
will be fixed shortly. RPM passes some specific value to the install 
script when it doing an upgrade which I did not catch and check (RPM 
rookie mistake). In short, it a bug and will fixed :-).

Hien.

Hien Nguyen wrote:
> Steve,
> 
> I saw the same thing happens on IA386 when doing rpm -Uvh. It is really 
> odd, I will investigate this problem.
> 
> In the mean time, please uninstall and install. I just trie dit and it 
> worked.
> 
> Thanks, Hien.
> 
> 
> Hien Nguyen wrote:
> 
>> Hi Steve,
>>
>> In v1.5.0 we changed the installation a little so that we can install 
>> the same rmp on other distros (since Redhat puts their startup scripts 
>> on /etc/rc.d/init.d, and Suse wants their at /etc/init.d). I think the 
>> problem you see is probably the result of the change that we made 
>> above. However to be honest, I am not sure.
>>
>> This is how our rpm (v1.5.0) places those start up scripts on the system
>>
>> 1. Stop the all evl daemons
>> 2. Check if there is /etc/rc.d/init.d then it is a typical Redhat 
>> init.d location, create a link to /etc/init.d
>> 3. Install startup scripts on /opt/evlog
>> 4. cp start up scripts from /opt/evlog to /etc/init.d (which is now a 
>> link on Redhat system)
>>
>>
>> Looking at the output you sent to us, it looks like when you upgrade 
>> with rpm -Uvh
>>
>> It did the following
>> 1. Stop all evlog daemons
>> 2. Install evlog bits
>> 3. Start evlog daemons
>> 4. Stop all evlog daemons
>> 5. Uninstall evlog bits
>>
>> 4 and 5 should not happen, it shouls stop after 3 finished.
>>
>> You could look at the evlog.spec in the section %pre %post %preun 
>> %postun for more detail, RPM is built base on this spec. They are very 
>> easy to understand (%pre = before  install bits, %post = after install 
>> bits, %preun = before uninstall bits, %postun = after uninstall bits).
>>
>> I need to install and test it on the ia64 to find out why this happens 
>> (looks like an rpm bug on ia64).
>>
>> Please let us know if you figure out why this happens :-)
>>
>> Thanks, Hien.
>>
>> Steve Woodruff wrote:
>>
>>> Larry - thanks alot.  I'll check out the tarball.
>>>
>>> I did notice one strange thing.  Maybe this is
>>> something i'm doing wrong, and forgive me if its
>>> a case of pilot error.
>>>
>>> I built a 1.5.0 rpm for ia64 - no problem.  I
>>> currently have 1.4.2 installed and running, with
>>> 2.4.18 variant kernel.  It seems that if i install
>>> onto a box without 1.4.2 installed, everything
>>> goes fine.  However, if i use rpm to upgrade
>>> the 1.4.2 version to 1.5.0, something strange
>>> happens -- the startup scripts from /etc/init.d
>>> are deleted!
>>>
>>> [root@ak /home/sjwoodr]# rpm -ivh
>>> evlog-1.4.2-1.ia64.rpm Preparing...               
>>> ########################################### [100%]
>>> Your kernel has been patched with evlog kernel patch.
>>>    1:evlog                 
>>> ########################################### [100%]
>>> make[1]: Entering directory
>>> `/var/evlog/templates/logmgmt'
>>> /sbin/evltc logmgmt.t
>>> make[1]: Leaving directory
>>> `/var/evlog/templates/logmgmt'
>>> Starting enterprise event logger: Starting enterprise event log 
>>> notification: Starting notification action daemon: [root@ak 
>>> /home/sjwoodr]# ps ax|grep evl
>>>  8200 pts/2    S      0:00 /sbin/evlogd
>>>  8201 pts/2    S      0:00 /sbin/evlogd
>>>  8211 pts/2    S      0:00 /sbin/evlnotifyd
>>>  8221 pts/2    S      0:00 /sbin/evlactiond
>>> [root@ak /home/sjwoodr]# ls /etc/init.d/*evl*
>>> /etc/init.d/evlaction  /etc/init.d/evlnotify /etc/init.d/evlog
>>>
>>> So far so good...
>>>
>>> [root@ak /home/sjwoodr]# rpm -Uvh
>>> evlog-1.5.0-1.ia64.rpm Preparing...               
>>> ########################################### [100%]
>>> Your kernel has been patched with evlog kernel patch.
>>> Shutting down notification action daemon: Shutting down enterprise 
>>> event log notification: Shutting down enterprise event logger:
>>> /etc/init.d/evlog: kill: (8201) - No such pid
>>>  
>>>    1:evlog                 
>>> ########################################### [100%]
>>> make[1]: Entering directory
>>> `/var/evlog/templates/logmgmt'
>>> /sbin/evltc logmgmt.t
>>> make[1]: Leaving directory
>>> `/var/evlog/templates/logmgmt'
>>> Starting enterprise event logger: Starting remote event logger: 
>>> Starting enterprise event log notification: Starting notification 
>>> action daemon: Shutting down notification action daemon: Shutting 
>>> down enterprise event log notification: Shutting down enterprise 
>>> event logger: make[1]: Entering directory
>>> `/var/evlog/templates/logmgmt'
>>> rm -f *.to
>>> make[1]: Leaving directory
>>> `/var/evlog/templates/logmgmt'
>>> [root@ak /home/sjwoodr]# ps ax|grep evl
>>> [root@ak /home/sjwoodr]# ls /etc/init.d/*evl*
>>> /etc/init.d/evlogrmt
>>> [root@ak /home/sjwoodr]#
>>>
>>> Its odd that it started the daemons, then
>>> stopped them... and afterwards, the init
>>> scripts are gone!
>>>
>>> So, is this a case of improper use of rpm
>>> or is there a problem here?
>>>
>>> Thanks,
>>>
>>> /steve
>>>
>>>  
>>>
>>>
>>> --- Larry Kessler <[email protected]> wrote:
>>>
>>>> On Monday 13 January 2003 10:57, Steve Woodruff
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> It doesn't seem that linuxEvlog.html has been
>>>>> updated regarding the new "plug-in" capability
>>>>> of evlog 1.5.0.  Is there any documentation
>>>>> available (maybe in draft form) that I can have
>>>>> a look at regarding this specific feature?  This
>>>>> is mentioned in section 8 (HOWTO) but marked as
>>>>> coming soon.
>>>>
>>>>
>>>>
>>>> Steve- Sorry but we've gotten behind on getting
>>>> things posted to the
>>>> website.  The attached tarball has a README with
>>>> explanation and code with numerous comments implementing a sample
>>>> driver.  Next
>>>> step is to create a HOWTO for the website, but this
>>>> should help.
>>>>
>>>> Please feel free to comment or post questions.
>>>>
>>>> Thanks,
>>>> Larry Kessler
>>>>
>>>>
>>>
>>>
>>>> ATTACHMENT part 2 application/x-tgz
>>>
>>>
>>>
>>> name=sample_be_howto.tar.gz
>>>
>>>
>>>
>>> =====
>>> ----------------------------------------------------------
>>>  Steve Woodruff, N9OH @ 42.18N 88.34W, [email protected]
>>>
>>> __________________________________________________
>>> Do you Yahoo!?
>>> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>>> http://mailplus.yahoo.com
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
>>> are you planning your Web Server Security? Click here to get a FREE
>>> Thawte SSL guide and find the answers to all your  SSL security issues.
>>> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
>>> _______________________________________________
>>> evlog-developers mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/evlog-developers
>>>
>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
>> are you planning your Web Server Security? Click here to get a FREE
>> Thawte SSL guide and find the answers to all your  SSL security issues.
>> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
>> _______________________________________________
>> evlog-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/evlog-developers
>>
> 
> 
> 




-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en