solaris부팅시 samba서버 올리기…

스크립트를 만든다.
/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
=============================

댓글 남기기

Your email address will not be published.

%d 블로거가 이것을 좋아합니다: