PREUN
/bin/sh
if [ $1 -eq 0 ]; then
if /sbin/service firebird status >& /dev/null; then
/sbin/service firebird stop
fi
chkconfig --del firebird
if [ "$(readlink /usr/lib64/firebird/tools >& /dev/null)" == "/usr/lib64/firebird/tools-superserver" ]; then
rm -f /usr/lib64/firebird/tools
fi
fi
# -----------------------------------------------------------------------------
# server-common scripts
# -----------------------------------------------------------------------------
POSTIN
/bin/sh
if test ! -e /usr/lib64/firebird/tools; then
ln -s /usr/lib64/firebird/tools{-superserver,}
fi
if [ $1 -eq 2 ]; then
if /sbin/service firebird status >& /dev/null; then
/sbin/service firebird restart
fi
fi
if [ $1 -eq 1 ]; then
chkconfig firebird off
fi