스크립트를 만든다.
/etc/rc2.d/S83samba
스크립트 내용…
==========================
case “$1” in
start)
[ -f /usr/local/samba/lib/smb.conf ] || exit 0
/usr/local/samba/bin/smbd -D
/usr/local/samba/bin/nmbd -D
;;
stop)
pkill smbd
pkill nmbd
;;
*)
echo “Usage: $0 { start | stop }”
exit 1
;;
esac
exit 0
=============================