blob: 5ebf261ff85327d5b4e193c35829dd571518b36d (
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
|
post_install() {
echo ""
echo "==> Dispatch systemd system unit templates installed."
echo " These run as the user named in the instance (replace <user>)."
echo " Enable and start (e.g. for user 'tradam'):"
echo " sudo systemctl daemon-reload"
echo " sudo systemctl enable --now dispatch-api@<user> dispatch-frontend@<user>"
echo ""
}
post_upgrade() {
echo ""
echo "==> Dispatch systemd units upgraded."
echo " Reload and restart your instances (replace <user>):"
echo " sudo systemctl daemon-reload"
echo " sudo systemctl restart dispatch-api@<user> dispatch-frontend@<user>"
echo ""
}
pre_remove() {
echo ""
echo "==> Stop dispatch services before removal (replace <user>):"
echo " sudo systemctl disable --now dispatch-api@<user> dispatch-frontend@<user>"
echo ""
}
|