http://bugzilla.novell.com/show_bug.cgi?id=523342
User dominique.leuenberger@tmf-group.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=523342#c4
--- Comment #4 from Dominique Leuenberger 2009-07-20 04:59:44 MDT ---
The expanded preuninstall script from open-vm-tools / openSUSE_11.1 x86_64:
preuninstall scriptlet (using /bin/sh):
# stop service with the old name (if exists) on update (something like
%stop_on_update)
test -n "$FIRST_ARG" || FIRST_ARG=$1
if test "$FIRST_ARG" -ge 1 ; then
test -f /etc/sysconfig/services && . /etc/sysconfig/services
if test "$YAST_IS_RUNNING" != "instsys" ; then
/etc/init.d/vmware-guestd stop > /dev/null || :
fi
fi
test -n "$FIRST_ARG" || FIRST_ARG=$1
if test "$FIRST_ARG" = "0" ; then
test -f /etc/sysconfig/services && . /etc/sysconfig/services
if test "$YAST_IS_RUNNING" != "instsys" -a
"$DISABLE_STOP_ON_REMOVAL" != yes ; then
for service in vmtoolsd ; do
/etc/init.d/$service stop > /dev/null
done
fi
fi
Note: the service stop will fail if not started and as such the program can't
be uninstalled. The same is also true for openSUSE_Factory x86_64.
This package can only be properly uninstalled if the service is running.
# Return values acc. to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - user had insufficient privileges
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
# 8--199 - reserved (8--99 LSB, 100--149 distrib, 150--199 appl)
#
# Note that starting an already running service, stopping
# or restarting a not-running service as well as the restart
# with force-reload (in case signaling is not supported) are
# considered a success.
We'll have to fix the init scripts to adhere to the rule: stopping a
not-running service is consdiered a success.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.