File: globus-gram-job-manager-sge-setup-seg.prerm

package info (click to toggle)
globus-gram-job-manager-sge 3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,500 kB
  • sloc: sh: 11,095; ansic: 1,032; perl: 893; makefile: 155
file content (22 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (6)
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

#DEBHELPER#

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