This file is indexed.

/usr/share/tripleo-image-elements/rabbitmq-server/install.d/20-rabbitmq-server is in python-tripleo-image-elements 0.7.1-1.

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
25
26
27
28
29
30
31
32
33
#!/bin/bash

set -eux

DISTRO=`lsb_release -si` || true

install-packages rabbitmq-server

# In Ubuntu rabbit's default init.d script is broken.
if [ "$DISTRO" = "Ubuntu" ] || [ "$DISTRO" = "Debian" -a "$DIB_INIT_SYSTEM" = "upstart" ]; then
  update-rc.d -f rabbitmq-server remove
  rm /etc/init.d/rabbitmq-server
  cat > /etc/init/rabbitmq-server.conf <<eof
start on runlevel [2345]
stop on runlevel [016]
respawn

exec /usr/sbin/rabbitmq-server > /var/log/rabbitmq/startup_log \\
                              2> /var/log/rabbitmq/startup_err
post-start exec /usr/sbin/rabbitmqctl wait >/dev/null 2>&1
eof
fi

if [ "$DIB_INIT_SYSTEM" = "systemd" ]; then
    # Delay the rc-local.service start-up until rabbitmq-server.service is started up
    sed -i 's/\[Unit\]/\[Unit\]\nBefore=rc-local.service/g' /usr/lib/systemd/system/rabbitmq-server.service

    # Respawn rabbitmq-server in case the process exits with an nonzero exit code
    sed -i 's/\[Service\]/\[Service\]\nRestart=on-failure/g' /usr/lib/systemd/system/rabbitmq-server.service

    # Enable the service
    systemctl enable rabbitmq-server.service
fi