prerm is in globus-gram-job-manager-sge-setup-seg 1.7-2.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/bin/sh
set -e
if [ -x "/etc/init.d/globus-scheduler-event-generator" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d globus-scheduler-event-generator stop sge || :
else
/etc/init.d/globus-scheduler-event-generator stop sge || :
fi
fi
if [ "$1" != "remove" -a "$1" != "purge" ]; then
exit 0
fi
globus-gatekeeper-admin -d jobmanager-sge-seg > /dev/null 2>&1 || :
globus-scheduler-event-generator-admin -d sge > /dev/null 2>&1 || :
exit 0
|