1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/japanese/samba20/files/samba.sh.sample
Akinori MUSHA 9e9156f9d7 Add CVS tags to the files this port installs.
Replace /usr/local in the startup script with ${PREFIX}.
2002-01-19 10:45:11 +00:00

26 lines
407 B
Bash

#!/bin/sh
#
# $FreeBSD$
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