summaryrefslogtreecommitdiffstats
path: root/debian/tests/systemd
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:51:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:51:25 +0000
commit4a31b814a318a37fe8b58d42f2025e49072971e4 (patch)
tree5ba51f467804ef2f6fea80a7ea2682cbdec1ff8f /debian/tests/systemd
parentAdding upstream version 1:2.3.19.1+dfsg1. (diff)
downloaddovecot-4a31b814a318a37fe8b58d42f2025e49072971e4.tar.xz
dovecot-4a31b814a318a37fe8b58d42f2025e49072971e4.zip
Adding debian version 1:2.3.19.1+dfsg1-2.1.debian/1%2.3.19.1+dfsg1-2.1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xdebian/tests/systemd22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/tests/systemd b/debian/tests/systemd
new file mode 100755
index 0000000..48afbf5
--- /dev/null
+++ b/debian/tests/systemd
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+echo "Checking whether dovecot.service is enabled"
+systemctl is-enabled dovecot.service
+
+echo "Checking whether dovecot.service is a native unit"
+source=$(systemctl show -pSourcePath dovecot.service | cut -d = -f 2)
+if [ -n "$source" ]; then
+ echo $source
+ exit 1
+else
+ echo "OK (no SourcePath found)"
+fi
+
+echo "Checking whether dovecot.socket is inactive"
+status=$(systemctl show -pActiveState dovecot.socket | cut -d = -f 2)
+echo $status
+if [ "$status" != inactive ]; then
+ exit 1
+fi