Files
ypserv/yppasswdd-systemd-exec
Thorsten Kukuk c07d592a81 Accepting request 574344 from home:mgerstner:branches:network:NIS
- 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
2018-02-20 13:00:05 +00:00

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