freebsd-ports/japanese/samba/files/samba.sh.sample
Steve Price 2430255b30 Adding ja-sambe version 2.0.5a-2.
A free SMB and CIFS client and server for UNIX.

PR:		15953
Submitted by:	Shinya Sasaki <pcmaster@osk3.3web.ne.jp>
2000-01-29 05:21:39 +00:00

23 lines
392 B
Bash

#!/bin/sh
smbspool=/var/spool/samba
pidfiledir=/var/run
smbd=/usr/local/sbin/smbd
nmbd=/usr/local/sbin/nmbd
# start
if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
if [ -f $smbd ]; then
if [ -d $smbspool ]; then
rm -f $smbspool/*
fi
echo -n ' Samba'
$smbd -D
$nmbd -D
fi
# stop
elif [ "x$1" = "xstop" ]; then
kill `cat $pidfiledir/smbd.pid`
kill `cat $pidfiledir/nmbd.pid`
fi