Hello,
These are rpm scripts:
postinstall scriptlet (using /bin/sh):
/sbin/chkconfig --add openfire
chown -R daemon:daemon /opt/openfire
preuninstall scriptlet (using /bin/sh):
&& /etc/init.d/openfire stop
if ; then
/sbin/chkconfig --del openfire
fi
The sequence used in upgrading is:
postinstall scriptlet
preuninstall scriptlet
After an upgrade, the service is down and not configured to start with the system
Maybe this should be more usefull:
postinstall scriptlet (using /bin/sh):
/sbin/chkconfig --add openfire
chown -R daemon:daemon /opt/openfire
- Restart if running
&& /etc/init.d/openfire condrestart
preuninstall scriptlet:
- 0 - uninstall
if ; then
/sbin/chkconfig --del openfire
&& /etc/init.d/openfire stop
fi
I dont know how upgrading files affect a running service. If the system must be off, this should be done in preinstall and restarted on postinstall.