Is EVIL! It is a very bad idea to have an RPM's %post script restart
a service? Why? Think about this scenario:
# rpm -ivh --root /clients/diskless1 sysklogd-1.4-4mdk.i586.rpm
Running a script on a diskless cluster server to build the root
filesystems of some diskless nodes will cause the syslog/klog service
to be restarted for each and every node filesystem built.
At a minimum a check for "--root" (if that is even possible) should be
done before the %post script of *any* package restarts the service it
is installing. I would argue that restarting services should be
disbled altogether but it is probably not worth arguing over if the
simple check for "--root" is done.
b.
--
Brian J. Murrell