PREIN
/bin/sh
# Add the "hsqldb" user and group
# we need a shell to be able to use su - later
/usr/sbin/groupadd -g 96 -f -r hsqldb 2> /dev/null || :
/usr/sbin/useradd -u 96 -g hsqldb -s /sbin/nologin \
-d /var/lib/hsqldb -r hsqldb 2> /dev/null || :
PREUN
/bin/sh
if [ $1 -eq 0 ] && [ -x /usr/bin/systemctl ]; then
# Package removal, not upgrade
/usr/bin/systemctl --no-reload disable --now hsqldb.service || :
fi
POSTIN
/bin/sh
if [ $1 -eq 1 ] && [ -x /usr/bin/systemctl ]; then
# Initial installation
/usr/bin/systemctl --no-reload preset hsqldb.service || :
fi
POSTUN
/bin/sh
if [ $1 -ge 1 ] && [ -x /usr/bin/systemctl ]; then
# Package upgrade, not uninstall
/usr/bin/systemctl try-restart hsqldb.service || :
fi
Triggers
hsqldb <
1.8.1.3-9
/bin/sh
# Save the current service runlevel info
# User must manually run systemd-sysv-convert --apply httpd
# to migrate them to systemd targets
/usr/bin/systemd-sysv-convert --save hsqldb >/dev/null 2>&1 ||:
# If the package is allowed to autostart:
/bin/systemctl --no-reload enable hsqldb.service >/dev/null 2>&1 ||:
# Run these because the SysV package being removed won't do them
/sbin/chkconfig --del hsqldb >/dev/null 2>&1 || :
/bin/systemctl try-restart hsqldb.service >/dev/null 2>&1 || :