From de5600b58e24431a7f5705cbddc851e9c18f48e0 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 31 Jan 2008 17:09:48 +0000 Subject: [PATCH] kill 2>/dev/null as we just interested in if we can signal it or not. --- dnsmasq.in | 4 ++-- resolvconf.in | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dnsmasq.in b/dnsmasq.in index ee4a6d6..fbe5bed 100755 --- a/dnsmasq.in +++ b/dnsmasq.in @@ -72,8 +72,8 @@ if [ -s "${dbuspid}" -a -s /var/run/dnsmasq.pid ]; then grep -q "^Compile time options.*[[:space:]]DBus[[:space:]]" \ ; then # Sanity - check that dnsmasq and dbus are running - if kill -0 $(cat "${dbuspid}") \ - && kill -0 $(cat /var/run/dnsmasq.pid); then + if kill -0 $(cat "${dbuspid}") 2>/dev/null \ + && kill -0 $(cat /var/run/dnsmasq.pid) 2>/dev/null; then DBUS=yes NEWCONF="${NEWCONF}\n# Domain specific servers will be sent over dbus\nenable-dbus\n" fi diff --git a/resolvconf.in b/resolvconf.in index 111c27e..06f460f 100755 --- a/resolvconf.in +++ b/resolvconf.in @@ -104,11 +104,11 @@ if [ "x${CMD}" = "x-s" ]; then # If restarting check if service is running or not if we can if [ "x${ACTION}" = "xrestart" ]; then if [ -s /var/run/"${SERVICE}".pid ]; then - kill -0 $(cat /var/run/"${SERVICE}".pid) + kill -0 $(cat /var/run/"${SERVICE}".pid) 2>/dev/null elif [ -s /var/run/"${SERVICE}"/"${SERVICE}".pid ]; then - kill -0 $(cat /var/run/"${SERVICE}".pid) + kill -0 $(cat /var/run/"${SERVICE}".pid) 2>/dev/null elif [ -s /var/run/"${SERVICE}"/pid ]; then - kill -0 $(cat /var/run/"${SERVICE}"/pid) + kill -0 $(cat /var/run/"${SERVICE}"/pid) 2>/dev/null else false fi -- 1.7.1