blob: 660d749b4fc243c2e9b5fc704061e977d21e4973 (
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
|
pre_install() {
if systemctl status gosearch &> /dev/null; then
echo 'Stopping & disabling gosearch service...'
systemctl disable --now gosearch.service
fi
}
post_install() {
echo 'Starting & enabling gosearch service...'
systemctl enable --now gosearch.service
}
pre_upgrade() {
echo 'Stopping gosearch service...'
systemctl stop gosearch.service
}
post_upgrade() {
echo 'Restarting gosearch service...'
systemctl daemon-reload
systemctl start gosearch.service
}
pre_remove() {
echo 'Stopping & disabling gosearch service...'
systemctl disable --now gosearch.service
}
|