~ubuntu-branches/ubuntu/karmic/perdition/karmic

« back to all changes in this revision

Viewing changes to etc/rc.d/init.d/perdition.debian

  • Committer: Bazaar Package Importer
  • Author(s): Simon Horman
  • Date: 2005-07-04 21:29:28 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050704212928-68r74ktjnb1zcr6u
Tags: 1.17-3
Revert to using ldap_init() instead of ldap_initialize()
which seems to be broken on debian's ldap, 2.1.30.
I am not sure what version it works for, if any.
http://www.openldap.org/lists/openldap-software/200406/msg00688.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#
9
9
# perdition
10
10
# Mail retrieval proxy server
11
 
# Copyright (C) 1999-2004  Horms
 
11
# Copyright (C) 1999-2005  Horms
12
12
13
13
# This program is free software; you can redistribute it and/or
14
14
# modify it under the terms of the GNU General Public License as
28
28
######################################################################
29
29
 
30
30
 
31
 
PATH=/home/horms/tmp/perdition//sbin:/bin:/usr/bin:/sbin:/usr/sbin
 
31
PATH=/usr/local/sbin:/bin:/usr/bin:/sbin:/usr/sbin
32
32
NAME=perdition
33
 
DAEMON=/home/horms/tmp/perdition//sbin/perdition
 
33
DAEMON=/usr/local/sbin/perdition
34
34
 
35
35
test -f $DAEMON || exit 0
36
36
 
61
61
    if [ "$POP3" = "yes" ]; then        
62
62
      start-stop-daemon --start --verbose \
63
63
        --pidfile /var/run/perdition.pop3/perdition.pop3.pid \
64
 
        --exec /home/horms/tmp/perdition//sbin/perdition.pop3 -- $FLAGS $POP3_FLAGS
 
64
        --exec /usr/local/sbin/perdition.pop3 -- $FLAGS $POP3_FLAGS
65
65
    fi
66
66
    if [ "$POP3S" = "yes" ]; then       
67
67
      start-stop-daemon --start --verbose \
68
68
        --pidfile /var/run/perdition.pop3s/perdition.pop3s.pid \
69
 
        --exec /home/horms/tmp/perdition//sbin/perdition.pop3s -- $FLAGS $POP3S_FLAGS
 
69
        --exec /usr/local/sbin/perdition.pop3s -- $FLAGS $POP3S_FLAGS
70
70
    fi
71
71
    if [ "$IMAP4" = "yes" ]; then       
72
72
      start-stop-daemon --start --verbose \
73
73
        --pidfile /var/run/perdition.imap4/perdition.imap4.pid \
74
 
        --exec /home/horms/tmp/perdition//sbin/perdition.imap4 -- $FLAGS $IMAP4_FLAGS
 
74
        --exec /usr/local/sbin/perdition.imap4 -- $FLAGS $IMAP4_FLAGS
75
75
    fi
76
76
    if [ "$IMAP4S" = "yes" ]; then      
77
77
      start-stop-daemon --start --verbose \
78
78
        --pidfile /var/run/perdition.imaps/perdition.imaps.pid \
79
 
        --exec /home/horms/tmp/perdition//sbin/perdition.imaps -- $FLAGS $IMAP4S_FLAGS
 
79
        --exec /usr/local/sbin/perdition.imaps -- $FLAGS $IMAP4S_FLAGS
80
80
    fi
81
81
    ;;
82
82
  stop)
83
83
    if [ "$POP3" = "yes" ]; then        
84
84
      start-stop-daemon --stop --verbose \
85
85
        --pidfile /var/run/perdition.pop3/perdition.pop3.pid \
86
 
        --exec /home/horms/tmp/perdition//sbin/perdition.pop3
 
86
        --exec /usr/local/sbin/perdition.pop3
87
87
    fi
88
88
    if [ "$POP3S" = "yes" ]; then       
89
89
      start-stop-daemon --stop --verbose \
90
90
        --pidfile /var/run/perdition.pop3s/perdition.pop3s.pid \
91
 
        --exec /home/horms/tmp/perdition//sbin/perdition.pop3s
 
91
        --exec /usr/local/sbin/perdition.pop3s
92
92
    fi
93
93
    if [ "$IMAP4" = "yes" ]; then       
94
94
      start-stop-daemon --stop --verbose \
95
95
        --pidfile /var/run/perdition.imap4/perdition.imap4.pid \
96
 
        --exec /home/horms/tmp/perdition//sbin/perdition.imap4
 
96
        --exec /usr/local/sbin/perdition.imap4
97
97
    fi
98
98
    if [ "$IMAP4S" = "yes" ]; then      
99
99
      start-stop-daemon --stop --verbose \
100
100
        --pidfile /var/run/perdition.imaps/perdition.imaps.pid \
101
 
        --exec /home/horms/tmp/perdition//sbin/perdition.imaps
 
101
        --exec /usr/local/sbin/perdition.imaps
102
102
    fi
103
103
    ;;
104
104
  restart)
110
110
    if [ "$POP3" = "yes" ]; then        
111
111
      start-stop-daemon --stop --signal 1 --quiet \
112
112
        --pidfile /var/run/perdition.pop3/perdition.pop3.pid \
113
 
        --exec /home/horms/tmp/perdition//sbin/perdition.pop3
 
113
        --exec /usr/local/sbin/perdition.pop3
114
114
    fi
115
115
    if [ "$POP3S" = "yes" ]; then       
116
116
      start-stop-daemon --stop --signal 1 --quiet \
117
117
        --pidfile /var/run/perdition.pop3s/perdition.pop3s.pid \
118
 
        --exec /home/horms/tmp/perdition//sbin/perdition.pop3s
 
118
        --exec /usr/local/sbin/perdition.pop3s
119
119
    fi
120
120
    if [ "$IMAP4" = "yes" ]; then       
121
121
      start-stop-daemon --stop --signal 1 --quiet \
122
122
        --pidfile /var/run/perdition.imap4/perdition.imap4.pid \
123
 
        --exec /home/horms/tmp/perdition//sbin/perdition.imap4
 
123
        --exec /usr/local/sbin/perdition.imap4
124
124
    fi
125
125
    if [ "$IMAP4S" = "yes" ]; then      
126
126
      start-stop-daemon --stop --signal 1 --quiet \
127
127
        --pidfile /var/run/perdition.imaps/perdition.imaps.pid \
128
 
        --exec /home/horms/tmp/perdition//sbin/perdition.imaps
 
128
        --exec /usr/local/sbin/perdition.imaps
129
129
    fi
130
130
    ;;
131
131
  *)