diff options
Diffstat (limited to 'meta-oe/recipes-connectivity/samba/samba/init.winbind')
-rw-r--r-- | meta-oe/recipes-connectivity/samba/samba/init.winbind | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/samba/samba/init.winbind b/meta-oe/recipes-connectivity/samba/samba/init.winbind new file mode 100644 index 000000000..53de2eec6 --- /dev/null +++ b/meta-oe/recipes-connectivity/samba/samba/init.winbind | |||
@@ -0,0 +1,38 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | ### BEGIN INIT INFO | ||
4 | # Provides: winbind | ||
5 | # Required-Start: $network $remote_fs $syslog | ||
6 | # Required-Stop: $network $remote_fs $syslog | ||
7 | # Should-Start: samba | ||
8 | # Default-Start: 2 3 4 5 | ||
9 | # Default-Stop: 0 1 6 | ||
10 | # Short-Description: start Winbind daemon | ||
11 | ### END INIT INFO | ||
12 | |||
13 | winbind=/usr/sbin/winbindd | ||
14 | test -x "$winbind" || exit 0 | ||
15 | |||
16 | case "$1" in | ||
17 | start) | ||
18 | echo -n "Starting Winbind... " | ||
19 | start-stop-daemon --start --quiet --exec $winbind | ||
20 | echo "done" | ||
21 | ;; | ||
22 | stop) | ||
23 | echo -n "Stopping Winbind... " | ||
24 | start-stop-daemon --stop --quiet --pidfile /var/run/winbind.pid | ||
25 | echo "done" | ||
26 | ;; | ||
27 | reload|force-reload) | ||
28 | start-stop-daemon --stop --quiet --signal 1 --exec $winbind | ||
29 | ;; | ||
30 | restart) | ||
31 | $0 stop && sleep 2 && $0 start | ||
32 | ;; | ||
33 | *) | ||
34 | echo "Usage: /etc/init.d/winbind {start|stop|reload|restart|force-reload}" | ||
35 | exit 1 | ||
36 | esac | ||
37 | |||
38 | exit 0 | ||