This file is indexed.

/etc/init.d/rc is in openrc 0.13.1-4.

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/sh
# Wrapper of OpenRC called from inittab

set -e

# map numbered to named runlevel
case $1 in
	0 )
		/sbin/openrc off
		runlevel="shutdown"
		;;
	1 )
		runlevel="recovery"
		;;
	6 )
		/sbin/openrc off
		runlevel="reboot"
		;;
	* )
		runlevel="default"
		;;
esac

exec /sbin/openrc $runlevel