Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ypbind-1.11 - errors in /etc/init.d/ypbind scripts???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mstamat
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2002
Posts: 130
Location: Greece

PostPosted: Sun Jun 02, 2002 2:10 pm    Post subject: ypbind-1.11 - errors in /etc/init.d/ypbind scripts??? Reply with quote

I just updated my old ypbind to ypbind-1.11 and the /etc/init.d/ypbind script does not seem to be working. I am getting an error message when ypbind starts:
Quote:
You need to setup YP_DOMAIN in /etc/conf.d/ypbind
But I have already defined YP_DOMAIN in /etc/conf.d/ypbind.

I think the ypbind script is wrong. Specifically, the first line of the checkconfig() function is:
Code:

[ -s "$YP_DOMAIN" ] && return 0


But -s will check if a file "$YP_DOMAIN" exists and has non-zero length. Which is not what we want. I think the correct would be:
Code:

[ "$YP_DOMAIN" != "" ] && return 0


Am I right with this, or am I missing something?
:?: :?: :?:
_________________
Manolis
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum