diff options
Diffstat (limited to 'meta-moblin/packages/samba/files/init')
-rw-r--r-- | meta-moblin/packages/samba/files/init | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/meta-moblin/packages/samba/files/init b/meta-moblin/packages/samba/files/init deleted file mode 100644 index cb57b17de4..0000000000 --- a/meta-moblin/packages/samba/files/init +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | # | ||
3 | # This is an init script for openembedded | ||
4 | # Copy it to /etc/init.d/samba and type | ||
5 | # > update-rc.d samba defaults 60 | ||
6 | # | ||
7 | |||
8 | |||
9 | smbd=/usr/sbin/smbd | ||
10 | test -x "$smbd" || exit 0 | ||
11 | nmbd=/usr/sbin/nmbd | ||
12 | test -x "$nmbd" || exit 0 | ||
13 | |||
14 | |||
15 | case "$1" in | ||
16 | start) | ||
17 | echo -n "Starting Samba: smbd" | ||
18 | start-stop-daemon --start --quiet --exec $smbd | ||
19 | echo -n " nmbd" | ||
20 | start-stop-daemon --start --quiet --exec $nmbd | ||
21 | echo "." | ||
22 | ;; | ||
23 | stop) | ||
24 | echo -n "Stopping Samba: smbd" | ||
25 | start-stop-daemon --stop --quiet --pidfile /var/run/smbd.pid | ||
26 | echo -n " nmbd" | ||
27 | start-stop-daemon --stop --quiet --pidfile /var/run/nmbd.pid | ||
28 | echo "." | ||
29 | ;; | ||
30 | reload|force-reload) | ||
31 | start-stop-daemon --stop --quiet --signal 1 --exec $smbd | ||
32 | start-stop-daemon --stop --quiet --signal 1 --exec $nmbd | ||
33 | ;; | ||
34 | restart) | ||
35 | echo -n "Stopping Samba: smbd" | ||
36 | start-stop-daemon --stop --quiet --pidfile /var/run/smbd.pid | ||
37 | echo -n " nmbd" | ||
38 | start-stop-daemon --stop --quiet --pidfile /var/run/nmbd.pid | ||
39 | echo "" | ||
40 | echo -n "Waiting for samba processes to die off" | ||
41 | for i in 1 2 3 ; | ||
42 | do | ||
43 | sleep 1 | ||
44 | echo -n "." | ||
45 | done | ||
46 | echo "" | ||
47 | echo -n "Starting Samba: smbd" | ||
48 | start-stop-daemon --start --quiet --exec $smbd | ||
49 | echo -n " nmbd" | ||
50 | start-stop-daemon --start --quiet --exec $nmbd | ||
51 | echo "." | ||
52 | ;; | ||
53 | *) | ||
54 | echo "Usage: /etc/init.d/samba {start|stop|reload|restart|force-reload}" | ||
55 | exit 1 | ||
56 | esac | ||
57 | |||
58 | exit 0 \ No newline at end of file | ||