This file is indexed.

/usr/bin/oarnodecheckquery is in oar-node 2.5.7-3.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

CHECKLOGDIR=/var/lib/oar/checklogs
CHECKSCRIPTDIR=/etc/oar/check.d
OARNODECHECKRUN=/usr/lib/oar/oarnodecheckrun
OARDODO=/usr/lib/oar/oardodo/oardodo
STAMPFILE=/var/lib/oar/oarnodecheckrun.lastrun
DELAY=3600 # seconds

shopt -s nullglob

# Run oarnodecheck if not run before or if last run is older then DELAY
if ! [ -f $STAMPFILE ] || [ $(($(date +"%s") - $(stat --printf="%Y" $STAMPFILE))) -ge $DELAY  ]; then
  SUDO=""
  # Run as root
  [ "$UID" -eq 0 ] || SUDO="$OARDODO"
  $SUDO $OARNODECHECKRUN || exit 1
fi

# If any log file exists, check failed
for f in $CHECKLOGDIR/*; do
	exit 2
done
exit 0