Changes for proper server operation on RHEL bases.  These should not neg...

...atively impact behavior on Ubuntu bases.
I found that those are unnecessary on Centos - it's done automatically. Do you need them for Redhat?

In any case, if you want to do this, you need to wrap them in a check for $1. The way you have it now, the --del will run after the installation and remove the service. This is really stupid by RPM but the order is pre,post,preun,postun. We actually found similar problems last week and I changed the spec file independently. Maybe you can sync those changes in, it should be pretty obvious where the chkconfig should go then.