From eae96c3b5a5cdb283bf628eac5915140eeb5d127 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Fri, 9 Apr 2010 01:32:22 +0200 Subject: [PATCH] Fix bashisms: kill -HUP -> kill -s HUP --- debian/changelog | 1 + hooks/centos-4/50-setup-hostname | 2 +- hooks/centos-5/50-setup-hostname | 2 +- hooks/dapper/50-setup-hostname | 2 +- hooks/debian/50-setup-hostname | 2 +- hooks/edgy/50-setup-hostname | 2 +- hooks/fedora-core-6/50-setup-hostname | 2 +- hooks/gentoo/50-setup-hostname | 2 +- 8 files changed, 8 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index c1cc631..96f0605 100644 --- a/debian/changelog +++ b/debian/changelog @@ -38,6 +38,7 @@ xen-tools (4.2~rc1-1) UNRELEASED; urgency=low - [debian/source/format]: missing-debian-source-format * Fix some bashisms - [^y] → [!y] (Thanks to Mathieu Parent!) + - kill -HUP → kill -s HUP (found by checkbashism) -- Axel Beckert Fri, 09 Apr 2010 01:30:49 +0200 diff --git a/hooks/centos-4/50-setup-hostname b/hooks/centos-4/50-setup-hostname index 07e2c12..0d60567 100755 --- a/hooks/centos-4/50-setup-hostname +++ b/hooks/centos-4/50-setup-hostname @@ -108,7 +108,7 @@ if [ -z "${dhcp}" ]; then if [ -e /var/run/dnsmasq.pid ]; then logMessage Allowing DNSMasq to restart. - kill -HUP `cat /var/run/dnsmasq.pid` + kill -s HUP `cat /var/run/dnsmasq.pid` fi fi fi diff --git a/hooks/centos-5/50-setup-hostname b/hooks/centos-5/50-setup-hostname index 6169960..2ea9a29 100755 --- a/hooks/centos-5/50-setup-hostname +++ b/hooks/centos-5/50-setup-hostname @@ -105,7 +105,7 @@ if [ -z "${dhcp}" ]; then if [ -e /var/run/dnsmasq.pid ]; then logMessage Allowing DNSMasq to restart. - kill -HUP `cat /var/run/dnsmasq.pid` + kill -s HUP `cat /var/run/dnsmasq.pid` fi fi fi diff --git a/hooks/dapper/50-setup-hostname b/hooks/dapper/50-setup-hostname index 4a5dcc7..121bf86 100755 --- a/hooks/dapper/50-setup-hostname +++ b/hooks/dapper/50-setup-hostname @@ -106,7 +106,7 @@ if [ -z "${dhcp}" ]; then if [ -e /var/run/dnsmasq.pid ]; then logMessage Allowing DNSMasq to restart. - kill -HUP `cat /var/run/dnsmasq.pid` + kill -s HUP `cat /var/run/dnsmasq.pid` fi fi fi diff --git a/hooks/debian/50-setup-hostname b/hooks/debian/50-setup-hostname index 74b669f..be9505d 100755 --- a/hooks/debian/50-setup-hostname +++ b/hooks/debian/50-setup-hostname @@ -105,7 +105,7 @@ if [ -z "${dhcp}" ]; then if [ -e /var/run/dnsmasq.pid ]; then logMessage Allowing DNSMasq to restart. - kill -HUP `cat /var/run/dnsmasq.pid` + kill -s HUP `cat /var/run/dnsmasq.pid` fi fi fi diff --git a/hooks/edgy/50-setup-hostname b/hooks/edgy/50-setup-hostname index 5ca31e0..6cd1c80 100755 --- a/hooks/edgy/50-setup-hostname +++ b/hooks/edgy/50-setup-hostname @@ -104,7 +104,7 @@ if [ -z "${dhcp}" ]; then if [ -e /var/run/dnsmasq.pid ]; then logMessage Allowing DNSMasq to restart. - kill -HUP `cat /var/run/dnsmasq.pid` + kill -s HUP `cat /var/run/dnsmasq.pid` fi fi fi diff --git a/hooks/fedora-core-6/50-setup-hostname b/hooks/fedora-core-6/50-setup-hostname index 30360a5..0451180 100755 --- a/hooks/fedora-core-6/50-setup-hostname +++ b/hooks/fedora-core-6/50-setup-hostname @@ -106,7 +106,7 @@ if [ -z "${dhcp}" ]; then if [ -e /var/run/dnsmasq.pid ]; then logMessage Allowing DNSMasq to restart. - kill -HUP `cat /var/run/dnsmasq.pid` + kill -s HUP `cat /var/run/dnsmasq.pid` fi fi fi diff --git a/hooks/gentoo/50-setup-hostname b/hooks/gentoo/50-setup-hostname index 0803efb..bdf9ff0 100755 --- a/hooks/gentoo/50-setup-hostname +++ b/hooks/gentoo/50-setup-hostname @@ -112,7 +112,7 @@ if [ -z "${dhcp}" ]; then if [ -e /var/run/dnsmasq.pid ]; then logMessage Allowing DNSMasq to restart. - kill -HUP `cat /var/run/dnsmasq.pid` + kill -s HUP `cat /var/run/dnsmasq.pid` fi fi fi