is_running

Package: WA2L/edrc 1.5.57
Section: Library Commands (3)
Updated: 10 November 2020
Index Return to Main Contents

 

NAME

is_running - check if a MC/Service Guard cluster package is running

 

SYNOPSIS

edrc/lib/is_running [ -h ]

is_running package

is_running package[{,package_n]}

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

evaluate if a given cluster package is up.

Return 'True' if it is up, otherwise return nothing, therefore this command can be used in crontab to run a certain line only if the specified cluster package is running on this host.

Example:

  0 1 * * * [ "`/opt/edrc/lib/is_running psoftprod`" ] \
    && /opt/psoft/bin/my_command

 

OPTIONS

-h
print usage message.

package
MC/Service Guard cluster package name.

 

ENVIRONMENT

-

 

EXIT STATUS

0
one of the specified package(s) is up.

1
all specified package(s) are down.

2
OS not supported.

4
usage printed.

5
package state cannot be resolved.

 

FILES

-

 

EXAMPLES

-

 

SEE ALSO

edrcintro(1),

 

NOTES

-

 

BUGS

-

 

AUTHOR

is_running was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net . 

 

COPYRIGHT

Copyright © 2020 Christian Walther

This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 16:53:17 GMT, August 28, 2024