From d2d9c0445cb849b13c5963c33ca1a68bc7f00b09 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 7 Dec 2022 01:18:12 -0500 Subject: [PATCH] *Start service on install and stop it on uninstall --- pkg/scripts/postinstall.sh | 1 + pkg/scripts/preremove.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/scripts/postinstall.sh b/pkg/scripts/postinstall.sh index e0ab4b1..9ccb131 100644 --- a/pkg/scripts/postinstall.sh +++ b/pkg/scripts/postinstall.sh @@ -1,3 +1,4 @@ #!/usr/bin/env bash systemctl enable lumeweb-relay.service +systemctl start lumeweb-relay.service diff --git a/pkg/scripts/preremove.sh b/pkg/scripts/preremove.sh index 0889194..09e13bc 100644 --- a/pkg/scripts/preremove.sh +++ b/pkg/scripts/preremove.sh @@ -1,3 +1,4 @@ #!/usr/bin/env bash +systemctl stop lumeweb-relay.service systemctl disable lumeweb-relay.service