Magellan Linux

Contents of /smage/tags/alx-0_6_0/core/samba/alx/files/nmbd.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2824 - (show annotations) (download)
Fri Sep 2 16:13:40 2011 UTC (12 years, 8 months ago) by niro
File size: 865 byte(s)
-merged with branch
1 #!/bin/bash
2 # $Header: /root/magellan-cvs/src/samba/samba.rc,v 1.1 2007-05-08 20:32:56 niro Exp $
3
4 #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k
5 #%start: 24
6 #%stop: 48
7
8 #deps
9 #%needs:
10 #%before:
11 #%after:
12
13 source /etc/conf.d/rc
14 source $rc_functions
15
16 case "$1" in
17 start)
18 rc_print "Starting netbios daemon ..."
19 if [ ! -d /var/run/samba ]
20 then
21 install -d /var/run/samba
22 fi
23 loadproc /usr/sbin/nmbd -D
24
25 update_svcstatus $1
26 splash svc_started "$(basename $0)" 0
27 ;;
28 stop)
29 rc_print "Stopping netbios daemon ..."
30 killproc /usr/sbin/nmbd
31
32 update_svcstatus $1
33 splash svc_stopped "$(basename $0)" 0
34 ;;
35 reload)
36 rc_print "Reloading netbios daemon ..."
37 reloadproc /usr/sbin/nmbd
38 ;;
39 restart)
40 $0 stop
41 sleep 1
42 $0 start
43 ;;
44 status)
45 statusproc /usr/sbin/nmbd
46 ;;
47 *)
48 rc_echo "Usage: $0 {start|stop|reload|restart|status}"
49 exit 1
50 ;;
51 esac