The two hourly cron jobs of innd should be modified to use an
if-then-else or a "! cmd || cmd" instead of "cmd && cmd", since
otherwise you would get hourly email if you have innd installed but
disabled in chkconfig.

For example, they look like:
--------------------------------------
[root@fulgore:/etc/cron.hourly]# more inn-cron-nntpsend
#!/bin/sh
/sbin/chkconfig innd && su - news -c /usr/bin/nntpsend
--------------------------------------

and

--------------------------------------
[root@fulgore:/etc/cron.hourly]# more inn-cron-rnews
#!/bin/sh

/sbin/chkconfig innd && /usr/bin/rnews -U
--------------------------------------

and it should look like:

--------------------------------------
[root@fulgore:/etc/cron.hourly]# more inn-cron-nntpsend
#!/bin/sh

! /sbin/chkconfig innd || su - news -c /usr/bin/nntpsend
--------------------------------------

and

--------------------------------------
[root@fulgore:/etc/cron.hourly]# more inn-cron-nntpsend
#!/bin/sh

! /sbin/chkconfig innd || /usr/bin/rnews -U
--------------------------------------

This happens because chkconfig returns a "1" if the service is disabled.



--
Eugenio Diaz, BSEE/BSCE
Linux Engineer
[EMAIL PROTECTED]




Reply via email to