summarylogtreecommitdiffstats
path: root/bigfix.install
blob: 8862dd848532f4d3f272e29fc67598733a83dd10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash

post_install() {
	echo "BESClient starting..."
	systemctl enable besclient.service
	systemctl restart besclient.service
	echo "BESClient started"
}

post_upgrade() {
	post_install $1
}

pre_remove() {
	echo "BESClient stopping..."
	systemctl disable besclient.service
	systemctl stop besclient.service
	echo "BESClient stopped"
}

op=$1
shift

$op $*