[CentOS] bash script fails conditional test
Always Learning
centos at u64.u22.net
Sun Apr 19 17:55:46 UTC 2015
On Sun, 2015-04-19 at 13:15 -0400, Tim Dunphy wrote:
> Hey all,
>
> I wrote a very basic script to determine if cassandra db is running. I'm
> setting a variable called 'pid' to the output of a ps | grep like to grab
> the pid of the cassandra process.
Insert an extra line after #!/bin/bash
set -xv
which will show helpful debug messages.
--
Regards,
Paul.
England, EU. Je suis Charlie.
More information about the CentOS
mailing list