~ubuntu-branches/ubuntu/warty/samba/warty

« back to all changes in this revision

Viewing changes to debian/winbind.init

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-10-15 12:31:58 UTC
  • Revision ID: james.westby@ubuntu.com-20041015123158-kpj7awbhgz6hodgi
Tags: 3.0.7-1ubuntu6
Added patch prefer_device_uri: change smbspool to prefer DEVICE_URI over
argv[0] to make printing work with the CUPS changes for CAN-2004-0923
(this removed authentication tokens from argv[0]). (Warty bug #2389)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# Start/stops the winbindd daemon.
 
4
#
 
5
#
 
6
 
 
7
PATH=/sbin:/bin:/usr/sbin:/usr/bin
 
8
 
 
9
DAEMON=/usr/sbin/winbindd
 
10
 
 
11
# clear conflicting settings from the environment
 
12
unset TMPDIR
 
13
 
 
14
# See if the daemon is there
 
15
test -x $DAEMON || exit 0
 
16
 
 
17
. /lib/lsb/init-functions
 
18
 
 
19
case "$1" in
 
20
        start)
 
21
                log_begin_msg "Starting the Winbind daemon..."
 
22
 
 
23
                start-stop-daemon --start --quiet --exec $DAEMON
 
24
 
 
25
                log_end_msg $?
 
26
                ;;
 
27
 
 
28
        stop)
 
29
                log_begin_msg "Stopping the Winbind daemon..."
 
30
 
 
31
                start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
 
32
 
 
33
                log_end_msg $?
 
34
                ;;
 
35
 
 
36
        restart|force-reload)
 
37
                log_begin_msg "Restarting the Winbind daemon..."
 
38
 
 
39
                start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
 
40
                sleep 2
 
41
                start-stop-daemon --start --quiet --exec $DAEMON
 
42
 
 
43
                log_end_msg $?
 
44
                ;;
 
45
        *)
 
46
                log_success_msg "Usage: /etc/init.d/winbind {start|stop|restart|force-reload}"
 
47
                exit 1
 
48
                ;;
 
49
esac
 
50
 
 
51
exit 0
 
52