FS#8660 - ypbind-mt daemon script fails to set default domain name
Attached to Project:
Arch Linux
Opened by Martin Schmidt (Blind) - Friday, 16 November 2007, 05:50 GMT
Last edited by Eric Belanger (Snowman) - Wednesday, 06 May 2009, 18:52 GMT
Opened by Martin Schmidt (Blind) - Friday, 16 November 2007, 05:50 GMT
Last edited by Eric Belanger (Snowman) - Wednesday, 06 May 2009, 18:52 GMT
|
Details
Description:
Trying to use the daemon script 'ypbind' without prior setting of the default domain name results in failure of the script. That makes the script useless during boot. Additional info: * package version(s) ypbind-mt 1.20.4 Yes, I have made the correct settings to the /etc/yp.conf (and nsswitch.conf for that matter) file. Steps to reproduce: Run the script *without* setting the default domain using /bin/domainname. Solution: Sun Solaris 10 sets the default domain with the file /etc/defaultdomain. I suggest to go down the same road. Fixing the init script to include a line like if [ -f /etc/defaultdomain ]; then /bin/domainname `cat /etc/defaultdomain`; fi during start is unintrusive, fixes the problem and thus adds flexibility. Cheers |
This task depends upon
http://www.slackwaresupport.com/howtos/Slackware-NIS-mini-HOWTO
So slackware also uses /etc/defaultdomain