> ?????? wrote:
>
> Hello Sir/Madam!
>
> my name is dae su kim!
> i have a problem diffcult!
> The problem is samba process smbd and nmbd no responsing!
> This log is my problem!
> help me! please help me!
>
> problem : SAMBA_2.0.7
>
> 7 03:13:48 cad1 inetd[179]: netbios-ns/udp server
> failing
> 7 03:27:03 cad1 inetd[179]: /opt/samba/bin/nmbd: Hangup
>
I think this indicates that you're starting
the program from inetd, and that it's having
a problem, so inetd is shutting it down.
We generally recommend running it as a daemon
these days (vesion 2.0.5a and later): I use
a script in /etc/rc3.d, which I've attached.
--dave
--
David Collier-Brown, | Always do right. This will gratify
Performance & Engineering Team | some people and astonish the rest.
Americas Customer Engineering | -- Mark Twain
(905) 415-2849 | davecb@canada.sun.com
-------------- next part --------------
#!/bin/sh
# S95samba.server -- start and stop samba
#
main() {
if [ $# -lt 1 ]; then
say "S95samba.server: you must provide a command."
say "Usage: $0 {start | stop | restart | status}"
exit 1
fi
command="$1"
shift
case "$command" in
start) start "$@" ;;
stop) stop "$@" ;;
restart) stop "$@"; start "$@" ;;
status) status "$@" ;;
esac
}
start() {
root
/usr/local/samba/bin/nmbd -D "$@"
# LD_PRELOAD=/usr/local/samba/lib/arm.so \
/usr/local/samba/bin/smbd -D "$@" &
}
stop() {
root
x=`ps -ef |\
egrep '/usr/local/samba/bin/nmbd|/usr/local/samba/bin/smbd' |\
egrep -v 'egrep' |\
awk ' {print $2}'`
kill $x
}
status() {
echo " UID PID PPID C STIME TTY TIME CMD"
ps -ef | egrep -v 'grep|old' | grep '/usr/local/samba/bin/'
}
say() {
echo "$*" 1>&2
}
root() {
if [ "`/usr/ucb/whoami`" != "root" ]; then
say "You must be root to issue this command."
kill $$
fi
}
main "$@"