summarylogtreecommitdiffstats
path: root/monitor.install
blob: bf71b4cb058a86f12bf44c0bf668cbcda2f45b63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

post_install() {
systemctl is-active --quiet skywire && systemctl daemon-reload && systemctl restart skywire && systemctl enable --now skywire-monitor 2> /dev/null
}


post_upgrade() {
post_install
}

pre-remove() {
systemctl disable --now skywire-monitor
}

post_remove() {
systemctl is-active --quiet skywire && systemctl daemon-reload && systemctl restart skywire
}