diff options
Diffstat (limited to 'configuration/debian/tedge_agent/prerm')
-rw-r--r-- | configuration/debian/tedge_agent/prerm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configuration/debian/tedge_agent/prerm b/configuration/debian/tedge_agent/prerm new file mode 100644 index 00000000..ef5833cd --- /dev/null +++ b/configuration/debian/tedge_agent/prerm @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +print_hint() { + echo "$1 is running. Stop $1 before installation, to stop it use: systemctl stop $1" +} + +if systemctl is-active --quiet tedge-agent; then + print_hint "tedge-agent" + exit 1 +fi |