From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010803 Description of problem: It is common practice to place source files for NIS maps outside of /etc (e.g., in /etc/nis) so that NIS users do not, by default, have accounts on the NIS server. When this is done it is necessary to tell yppasswdd where to find the passwd file. /etc/init.d/ypserv references the YPPASSWDD_ARGS environment variable, but provides no way of setting it (e.g., via /etc/sysconfig/yppasswdd), other than (a) editing the rc script directly, or (b) placing the definition in /etc/sysconfig/network, which is sourced by the script. The script should instead source /etc/sysconfig/yppasswdd for options, which, in addition to YPPASSWDD_ARGS, should also support ETCDIR (for setting an argument for the -D switch), PASSWDFILE (for the -p switch) and SHADOWFILE (for the -s switch). These variables should be handled something like this: if [ "$ETCDIR" ]; then YPPASSWDD_ARGS="$YPPASSWDD_ARGS -D $ETCDIR" fi Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: Not a crashing bug. Additional info:
The same thing can be done with YPPASWDD_ARGS in /etc/sysconfig/network, so I don't see a reason to add new files or add further options unless you can show me things that are currently not possible to achieve. Thanks, Florian La Roche
It's a ludicrous idea that yppasswdd options should be set in /etc/sysconfig/network; talk about overloading a config file far beyond its original intent! Given that philosophy, why do we have seperate config files for: - identd - vnc - samba - squid Etc. and so on. *EVERY* *SINGLE* *ONE* of those files is nothing but shell variable assignments that could just as easily be placed in /etc/sysconfig/network. I'm going to go out on a limb and answer my own question: because it's far more logical to look for samba in /etc/sysconfig/samba, and squid related options in /etc/sysconfig/squid. By the same token, having the yppasswdd start up script source /etc/sysconfig/yppasswdd would be much more in the "RedHat style", would make far more sense, and would allow for a far more intelligent startup script (as described in the original posting).
Implemented in ypserv-2.2-6