summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-zope/zope')
-rw-r--r--net-zope/zope/files/zope2
-rw-r--r--net-zope/zope/files/zope.rc62
2 files changed, 2 insertions, 2 deletions
diff --git a/net-zope/zope/files/zope b/net-zope/zope/files/zope
index dd50e4da0f92..e35c1f9f1e3b 100644
--- a/net-zope/zope/files/zope
+++ b/net-zope/zope/files/zope
@@ -141,7 +141,7 @@ chkstatus() {
# Next try "/var/run/*.pid" files
if [ -f /var/run/$1.pid ] ; then
- pid=`head -1 /var/run/$1.pid`
+ pid=`head -n 1 /var/run/$1.pid`
if [ "$pid" != "" ] ; then
echo "$1 dead but pid file exists"
return 1
diff --git a/net-zope/zope/files/zope.rc6 b/net-zope/zope/files/zope.rc6
index e9b706856dde..a437b190bafa 100644
--- a/net-zope/zope/files/zope.rc6
+++ b/net-zope/zope/files/zope.rc6
@@ -143,7 +143,7 @@ chkstatus() {
# Next try "/var/run/*.pid" files
if [ -f /var/run/$1.pid ] ; then
- pid=`head -1 /var/run/$1.pid`
+ pid=`head -n 1 /var/run/$1.pid`
if [ "$pid" != "" ] ; then
echo "$1 dead but pid file exists"
return 1