/etc/init/ypxfrd.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 | description "NIS map transfer server"
author "Steve Langasek <steve.langasek@canonical.com>"
start on started ypserv
stop on stopping ypserv
respawn
expect daemon
pre-start script
NISSERVER=false
[ -f /usr/sbin/ypbind ] && [ -f /etc/defaultdomain ] || { stop; exit 0; }
[ -f /etc/default/nis ] && . /etc/default/nis
[ "$NISSERVER" = master ] || { stop; exit 0; }
end script
script
[ -f /etc/default/nis ] && . /etc/default/nis
exec rpc.ypxfrd $YPXFRDARGS
end script
|