summaryrefslogtreecommitdiffhomepage
path: root/packaging/dispatch-systemd.install
blob: 3bd29be9d7c7e35428ce723124a8682964899378 (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
post_install() {
	echo ""
	echo "==> Dispatch systemd user units installed."
	echo "    Enable and start:"
	echo "      systemctl --user daemon-reload"
	echo "      systemctl --user enable --now dispatch-api dispatch-frontend"
	echo ""
}

post_upgrade() {
	echo ""
	echo "==> Dispatch systemd units upgraded."
	echo "    Reload and restart:"
	echo "      systemctl --user daemon-reload"
	echo "      systemctl --user restart dispatch-api dispatch-frontend"
	echo ""
}

pre_remove() {
	echo ""
	echo "==> Stop dispatch services before removal:"
	echo "      systemctl --user disable --now dispatch-api dispatch-frontend"
	echo ""
}