Commit 23bfa2cf authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

[JM-1233] Added clean exits so that uninstalls and such occur regardless of init status.


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9728 b35dd754-fafc-0310-a699-88a17e54d16e
parent 9ed3ba13
...@@ -81,6 +81,8 @@ if [ "$1" == "0" ]; then ...@@ -81,6 +81,8 @@ if [ "$1" == "0" ]; then
/sbin/chkconfig --del openfire /sbin/chkconfig --del openfire
[ -x "/etc/init.d/openfire" ] && /etc/init.d/openfire stop [ -x "/etc/init.d/openfire" ] && /etc/init.d/openfire stop
fi fi
# Force a happy exit even if openfire shutdown script didn't exit cleanly.
exit 0
%post %post
chown -R daemon:daemon %{homedir} chown -R daemon:daemon %{homedir}
...@@ -92,6 +94,9 @@ fi ...@@ -92,6 +94,9 @@ fi
# Trigger a restart. # Trigger a restart.
[ -x "/etc/init.d/openfire" ] && /etc/init.d/openfire condrestart [ -x "/etc/init.d/openfire" ] && /etc/init.d/openfire condrestart
# Force a happy exit even if openfire condrestart script didn't exit cleanly.
exit 0
%files %files
%defattr(-,daemon,daemon) %defattr(-,daemon,daemon)
%dir %{homedir} %dir %{homedir}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment