summaryrefslogtreecommitdiff
blob: 860e2ce7eb4779b60bc79eb0a5e9172eb5bace10 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
mypid=`pidof /usr/sbin/nmbd`
if [ -z "$mypid" ]
then
	/usr/sbin/nmbd -l ./log/logfifo
	sleep 2
	mypid=`pidof /usr/sbin/nmbd`
fi
exec /usr/bin/watchpid $mypid