데몬 스크립트 파일 : /etc/rc.d/init.d/smb
작성자 정보
- 구돌 작성
- 작성일
컨텐츠 정보
- 2,367 조회
- 0 추천
- 목록
본문
데몬 스크립트 파일 : /etc/rc.d/init.d/smb
삼바(samba) 데몬 실행(중지) 스크립트입니다.
여러분들께서도 많이 들어보셨던 삼바(samba)는 윈도우 시스템과의 파일 및 프린트공유를 위한 서버입니다.
이 스크립트를 실행하면 SMBD데몬과 NMBD데몬을 실행시킵니다.
삼바데몬 중 SMBD데몬은 삼바의 주데몬이며 NMBD데몬은 NETBIOS 네임서비스 데몬입니다.
이 스크립트에 관련된 명령어들은 이 책의 smbd, nmbd, smbadduser, smbpasswd, smbstatus, smbmount, smbumount, smbclient명령어편을 참조하시기 바랍니다.
사용옵션 : start|stop|restart|reload|status|condrestart
PID파일1 : /var/run/samba/smbd.pid
PID파일2 : /var/run/samba/nmbd.pid
설정파일 : /etc/samba/smb.conf
데몬파일
- /usr/sbin/nmbd
- /usr/sbin/smbd
관련디렉토리 : /etc/samba
로그파일위치 : /var/log/samba
스크립트 사용예
[root@command init.d]# /etc/rc.d/init.d/smb stop Shutting down SMB services: [ OK ] Shutting down NMB services: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/smb start Starting SMB services: [ OK ] Starting NMB services: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/smb restart Shutting down SMB services: [ OK ] Shutting down NMB services: [ OK ] Starting SMB services: [ OK ] Starting NMB services: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/smb status smbd (pid 5656) is running... nmbd (pid 5660) is running... [root@command init.d]# [root@command init.d]# ps -ef | grep mbd
root 5656 1 0 20:18 ? 00:00:00 smbd -D root 5660 1 0 20:18 ? 00:00:00 nmbd -D root 5673 5553 0 20:19 pts/1 00:00:00 grep mbd [root@command init.d]# |
관련자료
-
이전
-
다음