- support specification of fixed ports for ypserv, ypxfrd, ypppasswd via /etc/sysconfig/ypserv. This is necessary to support the migration to firewalld. firewalld does not support dynamic rpc ports like SuSEfirewall2 did. One way around this is to assign fixed port numbers for all services. OBS-URL: https://build.opensuse.org/request/show/574344 OBS-URL: https://build.opensuse.org/package/show/network:NIS/ypserv?expand=0&rev=10
15 lines
526 B
Bash
15 lines
526 B
Bash
#!/bin/sh
|
|
#
|
|
# yppasswd-systemd-exec
|
|
#
|
|
# description: This is part of former yppasswdd init script, which is used
|
|
# to create the correct arguments to start rpc.yppasswdd itself.
|
|
|
|
# evaluate the OPTIONS for rpc.yppasswdd
|
|
YPPASSWDD_OPTS=""
|
|
test "$YPPWD_CHFN" = "yes" && YPPASSWDD_OPTS="$YPPASSWDD_OPTS -e chfn"
|
|
test "$YPPWD_CHSH" = "yes" && YPPASSWDD_OPTS="$YPPASSWDD_OPTS -e chsh"
|
|
test x"$YPPWD_SRCDIR" = "x" && YPPWD_SRCDIR="/etc"
|
|
|
|
exec /usr/sbin/rpc.yppasswdd -f -D $YPPWD_SRCDIR $YPPASSWDD_OPTS $YPPASSWDD_ARGS
|