#!/bin/sh
MSN="msn_enable"
DS_CONF="/etc/CGI_ds.conf"
THTTPD_ID=`/bin/pidof thttpd`
LIMIT=20000

if [ "$(grep ${MSN} ${DS_CONF} | cut -d= -f2 )" = "yes" ]; then
    if [ "$(pidof nmbd)" = "" ]; then
	/usr/sbin/nmbd -D
    fi
    if [ "$(pidof smbd)" = "" ]; then
	/usr/sbin/smbd -D
    fi
fi

if [ -z $THTTPD_ID ];then
	/usr/sbin/thttpd -C /etc/thttpd.conf
fi

/bin/rm -f /var/log/samba/*.old &>/dev/null
