This file is indexed.

/etc/init/ypserv.conf is in nis 3.17-32ubuntu6.

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

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
34
35
36
37
38
39
40
description	"NIS server"
author		"Steve Langasek <steve.langasek@canonical.com>"

# Patterned after the statd.conf job in nfs-common.
start on (started portmap ON_BOOT=
          or (started portmap ON_BOOT=y
              and ((filesystem and static-network-up) or failsafe-boot)))
stop on stopping portmap or runlevel [!2345]

expect daemon
respawn

pre-start script
	NISSERVER=false

	[ -f /usr/sbin/ypbind ] && [ -f /etc/defaultdomain ] || { stop; exit 0; }

	[ -f /etc/default/nis ] && . /etc/default/nis

	[ "$NISSERVER" = false ] && { stop; exit 0; }

	oname=$(domainname)
	nname=$(cat /etc/defaultdomain)
	if [ "$oname" != "$nname" ]; then
		echo "Setting NIS domainname to: $nname"
		domainname "$nname"
	fi
end script

script
	[ -f /etc/default/nis ] && . /etc/default/nis
	exec ypserv $YPSERVARGS
end script

post-start script
	[ -f /etc/default/nis ] && . /etc/default/nis
	if [ "$NISSERVER" = slave ] && [ -n "$NISMASTER" ]; then
		/usr/lib/yp/ypinit -s "$NISMASTER"
	fi
end script