Howto print message on rpm install?

Gianluca Sforna giallu at gmail.com
Wed Dec 27 09:50:43 UTC 2006


On 12/27/06, Christopher Stone <chris.stone at gmail.com> wrote:
> On 27 Dec 2006 00:50:26 -0600, Jason L Tibbitts III <tibbs at math.uh.edu> wrote:
> > >>>>> "TL" == Thorsten Leemhuis <fedora at leemhuis.info> writes:
> >
> > TL> Something for the next-gen rpm? Or should we try to build
> > TL> something around the current rpm?
> >
> > It could be as simple as shipping a script to be called in an RPM
> > scriptlet which reports errors in various ways.  Default to something
> > like mailing root but let the administrator to configure it to do
> > other things.
> >
> > Unfortunately that would clutter up specfiles with extra
> > "Requires(post):" bits.
>
> Whats wrong with using syslog?
>

Yap. that way if the system is correctly configured (that is, root
mail is sent to someone) logwatch will inform you of the problems.

I recently discovered the "logger" command...




More information about the fedora-extras-list mailing list