| 您的位置:首页 > 文档 > samba > |
文章分类热门文章 |
开机自动启动samba创建:2005-10-27 16:19:06 作者:Unlinux 来自: http://www.Unlinux.com 最标准的做法 1. 在 /etc/init.d 中作一个如下内容的脚本smbd $smbspool=/var/spool/samba $piddir=/var/run $smbd=/usr/sbin/smbd $nmbd=/usr/sbin/nmbd if [ "x$1" = "x" -o "x$1" = "xstart" ]; then if [ -d $smbspool ]; then rm -f $smbspool/* fi $smbd -D $nmbd -D elif [ "x$1" = "xstop" ]; then kill `cat $piddir/smbd.pid` kill `cat $piddir/nmbd.pid` else echo "$0 start|stop" fi 2. 然后执行 ln -s /etc/init.d/smbd /etc/rc3.d/S99smbd ln -s /etc/init.d/smbd /etc/rc0.d/K01smbd 转载自:http://www.unlinux.com/doc/samba/20051027/3668.html 【评论】 【加入收藏夹】 【大 中 小】 【打印】 【关闭】 ※ 相关链接
|