#
# Env configurational file for 'runstatus' check
#

#
# x_OK will make a heartbeat indicator prefix:x with OK/ERR status based on exit code
# x_RUN will make a numerical indicator prefix:x with numerical status minlim=0, maxlim=0

# OPTIONS:
# x_CHDIR will run command in directory x_CHDIR
# x_USER and x_GROUP will run command as user x_USER and group x_GROUP

#
# This will make heartbeat indicator prefix:apache with status OK (always OK unless failed)
#
apache_RUN="systemctl is-active --quiet apache2"

#
# This will make heartbeat indicator prefix:apache with status OK (always OK unless failed)
#
apache_OK="systemctl is-active --quiet apache2"

#
#



#
# This will make heartbeat indicator prefix:true with status OK (always OK unless failed)
#
# true_OK=/bin/true

#
# This will make heartbeat indicator prefix:false with status ERR
#
# false_OK=/bin/false

#
# This will make indicator prefix:myapache which will be OK if apache2 is running
#
# apache_OK="systemctl is-active --quiet apache2"

# nonempty_OK="test -s /etc/passwd"

# after command: touch /tmp/empty
# empty_OK="test ! -s /tmp/empty"

# if URL is available
# _RUN makes numerical indicator, not heartbeat. Maybe you will need more flexibility
# google_RUN = curl --silent --head --fail --output /dev/null http://google.com/

### COMMON SETTINGS

# PREFIX2=run:

# Policy if not default
POLICY=
