diff options
author | Bill Nottingham <notting@redhat.com> | 2000-08-15 15:54:26 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-08-15 15:54:26 +0000 |
commit | dfe1994884c319f0ff97e6598289994243fa7f5c (patch) | |
tree | 466bb21fd786c8101c6feb6b24a815f65c6db53e /rc.d/init.d/functions | |
parent | 3b2b6d5cb7d89362e784f73481c01c0e3be52d31 (diff) | |
download | initscripts-dfe1994884c319f0ff97e6598289994243fa7f5c.tar initscripts-dfe1994884c319f0ff97e6598289994243fa7f5c.tar.gz initscripts-dfe1994884c319f0ff97e6598289994243fa7f5c.tar.bz2 initscripts-dfe1994884c319f0ff97e6598289994243fa7f5c.tar.xz initscripts-dfe1994884c319f0ff97e6598289994243fa7f5c.zip |
don't use head, it's in /usr
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-x | rc.d/init.d/functions | 4 |
1 files changed, 2 insertions, 2 deletions
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 |