summarylogtreecommitdiffstats
path: root/gopreload.install
blob: 1f0396aed7aa138a8efea4f633a23167fae48d00 (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
25
26
27
post_upgrade() {
	echo ""
	echo "Issuing systemctl daemon-reload..."
	systemctl daemon-reload
	echo "Done."
	echo ""
}
post_install() {
	echo ""
	echo "Issuing systemctl daemon-reload..."
	systemctl daemon-reload
	echo "Done."
	echo ""
	echo "Please, read docs in /usr/share/gopreload/README"
	echo ""
	echo "Use gopreload-prepare to add programs to the preload list"
	echo "and systemctl start gopreload to preload them"
	echo ""
}

post_remove() {
	echo ""
	echo "Issuing systemctl daemon-reload && ststemctl stop gopreload..."
	systemctl  daemon-reload && systemctl stop gopreload &>/dev/null
	echo "Done."
	echo ""
}