ypbind init script -eq 100 flag
OS = Fedora 8
ypserver configured and working
to bind a new client I have experienced ypbind failing
checking config all files – see no problem
to run commands
service ypbind start
I get
Setting NIS domain: [ OK ]
Starting NIS service: [ OK ]
Binding NIS service: [ FAILED ]
so in starting ypbind with command
/etc/init.d/ypbind start or restart
I see the same failure
with the ypwhich command
I get a yp in not bind error (not exact error terminology),
below I have entered the tail end of the /etc/init.d/ypbind init script
please look at line numbered 141
so the question is “what do the flags -eq 100 mean”?
Also is this “&& stop” shutting down the ypbind service?
I have found if I comment this line out ypbind does work but
reports FAILED during boot up and using the command
service ypbind start or restart.
I have researched and cam up empty.
Thanks in advance for any insight.
137 # See how we were called.
138 case "$1" in
139 start)
140 start
141 [ $? -eq 100 ] && stop
142 ;;
143 stop)
144 stop
145 ;;
146 status)
147 status ypbind
148 RETVAL=$?
149 ;;
150 restart|reload)
151 restart
152 ;;
153 condrestart)
154 [ -f /var/lock/subsys/ypbind ] && restart || :
155 ;;
156 *)
157 echo $"Usage: $0 {start|stop|status|restart|condrestart}"
158 exit 1
159 esac
160
161 exit $?
|