unbound: Print nicer error message when already running

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2016-10-01 18:55:23 +01:00
parent 46d8d50f45
commit 80bc60228b

View File

@@ -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