10
10
# Mail retrieval proxy server
11
# Copyright (C) 1999-2004 Horms
11
# Copyright (C) 1999-2005 Horms
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
######################################################################
31
PATH=/home/horms/tmp/perdition//sbin:/bin:/usr/bin:/sbin:/usr/sbin
31
PATH=/usr/local/sbin:/bin:/usr/bin:/sbin:/usr/sbin
33
DAEMON=/home/horms/tmp/perdition//sbin/perdition
33
DAEMON=/usr/local/sbin/perdition
35
35
test -f $DAEMON || exit 0
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
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
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
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
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
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
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
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
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
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
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
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