From dfe1994884c319f0ff97e6598289994243fa7f5c Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 15 Aug 2000 15:54:26 +0000 Subject: don't use head, it's in /usr --- rc.d/init.d/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.d/init.d') diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 3922af3a..11dea408 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -198,7 +198,7 @@ pidofproc() { # First try "/var/run/*.pid" files if [ -f /var/run/${base}.pid ] ; then - pid=`head -1 /var/run/${base}.pid` + pid=`cat /var/run/${base}.pid | { read foo ; echo $foo ; }` if [ "$pid" != "" ] ; then echo $pid return 0 @@ -231,7 +231,7 @@ status() { # Next try "/var/run/*.pid" files if [ -f /var/run/${base}.pid ] ; then - pid=`head -1 /var/run/${base}.pid` + pid=`cat /var/run/${base}.pid | { read foo ; echo $foo ; }` if [ "$pid" != "" ] ; then echo "${base} dead but pid file exists" return 1 -- cgit v1.2.1