daemons not starting form inetd
Bob Hoekstra
Bob.Hoekstra at khamsin.demon.co.uk
Sat Aug 7 10:51:43 GMT 1999
"Mr. Alex Stepney" wrote:
>
> All,
>
> I'm running Samba on various Solaris boxes (all 2.X). One machine
> has been running CV's from about a month ago as a PDC and all other
> boxes 2.0.4b. When I try to upgrade to 2.0.5a or try to install the
> latest CV's neither nmbd or smbd will start from inetd on any 2.5.1
> box. I don't want to move my PDC from the machine its currently
> on, or upgrade to 2.7 (just yet!). Has anyone experienced this or
> found away around the problem?
>
> Thanks in advance
>
> Alex.
Personally, I don't like the concept of running samba from inetd. I have
been running the attached script (/etc/init.d/samba, symbolic link to
/etc/rc2.d/S99samba) for some time (OS from Solaris 2.4 through 7, can't
remember how many sambas). It's always done the job.
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GO/! d- s++:+ a+ C++(++++) US+++$ P+ L+ E--- W++ N++ w--- O- V- PS+
PE- Y+ PGP- t+ 5++ X+ R* tv+ b+ DI++ D G e(*) h++/-- r+++ y?
------END GEEK CODE BLOCK------
-----------------------------------------------------
Bob Hoekstra: APL & Unix Consultant
Tele: +44 (0)1483 771028 (Home)
+44 (0)410 562345 (Mobile)
Web site: http://www.khamsin.demon.co.uk
Home email: Bob.Hoekstra at khamsin.demon.co.uk
-----------------------------------------------------
-------------- next part --------------
#!/bin/sh
##########################################
# Start samba stuff
# Bob Hoekstra, 25/1/97
##########################################
SMBDIR=/usr/local/samba/bin
export SMBDIR
SambaStart () {
for PROC in smbd nmbd
do
$SMBDIR/$PROC -D && echo "Samba $PROC daemon started."
done
}
SambaStop() {
for PROC in nmbd smbd
do
PS=`ps -ef | grep "${SMBDIR}/${PROC}" | grep -v grep | awk '{print $2}'`
if [ "X$PS" = "X" ]
then
echo "No $PROC process running."
else
kill -9 $PS && echo "$PROC process killed."
fi
done
}
case "$1" in
'start') SambaStart ;;
'stop') SambaStop ;;
'restart') SambaStop
sleep 5
SambaStart ;;
*) echo "Usage: $0 start|stop|restart" ;;
esac
More information about the samba-ntdom
mailing list