summarylogtreecommitdiffstats
path: root/monitor.install
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.install')
-rw-r--r--monitor.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/monitor.install b/monitor.install
new file mode 100644
index 000000000000..bf71b4cb058a
--- /dev/null
+++ b/monitor.install
@@ -0,0 +1,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
+}