From 80bc60228b53635aa3e742467195b63adff30c59 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 1 Oct 2016 18:55:23 +0100 Subject: [PATCH] unbound: Print nicer error message when already running Signed-off-by: Michael Tremer --- src/initscripts/init.d/unbound | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/initscripts/init.d/unbound b/src/initscripts/init.d/unbound index 6496265cf1..1b2649f20c 100644 --- a/src/initscripts/init.d/unbound +++ b/src/initscripts/init.d/unbound @@ -181,6 +181,12 @@ get_memory_amount() { case "$1" in start) + # Print a nicer messagen when unbound is already running + if pidofproc -s unbound; then + statusproc /usr/sbin/unbound + exit 0 + fi + eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings) # Create control keys at first run -- 2.39.2