Magellan Linux

Contents of /trunk/magellan-initscripts/etc/rc.d/init.d/samba

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (show annotations) (download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 3 months ago) by niro
File size: 1339 byte(s)
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

1 #!/bin/bash
2
3 #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k
4 #%start: 24
5 #%stop: 48
6
7 #deps
8 #%needs:
9 #%before:
10 #%after:
11
12 source /etc/sysconfig/rc
13 source $rc_functions
14 case "$1" in
15 start)
16 echo -e ${COLOREDSTAR}"Starting nmbd ..."
17 loadproc /usr/sbin/nmbd -D
18 echo -e ${COLOREDSTAR}"Starting smbd ..."
19 loadproc /usr/sbin/smbd -D
20
21 update_svcstatus $1
22 splash svc_started "$(basename $0)" 0
23 ;;
24 stop)
25 echo -e ${COLOREDSTAR}"Stopping smbd ..."
26 killproc /usr/sbin/smbd
27 echo -e ${COLOREDSTAR}"Stopping nmbd ..."
28 killproc /usr/sbin/nmbd
29
30 update_svcstatus $1
31 splash svc_stopped "$(basename $0)" 0
32 ;;
33 reload)
34 echo -e ${COLOREDSTAR}"Reloading smbd ..."
35 reloadproc /usr/sbin/smbd
36 echo -e ${COLOREDSTAR}"Reloading nmbd ..."
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 statusproc /usr/sbin/smbd
47 ;;
48 *)
49 echo "Usage: $0 {start|stop|reload|restart|status}"
50 exit 1
51 ;;
52 esac

Properties

Name Value
svn:executable *