/[smecontribs]/rpms/mailman/contribs9/mailman-2.1.12-initcleanup.patch
ViewVC logotype

Annotation of /rpms/mailman/contribs9/mailman-2.1.12-initcleanup.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Fri Aug 21 17:29:56 2015 UTC (9 years, 3 months ago) by stephdl
Branch: MAIN
CVS Tags: mailman-2_1_12-103_el6_sme, mailman-2_1_12-100_el6_sme, mailman-2_1_12-104_el6_sme, mailman-2_1_12-25_el6_sme_sme, mailman-2_1_12-102_el6_sme, mailman-2_1_12-101_el6_sme, HEAD
Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.1.12
2.1.12-25.sme.sme - Initial release to contribs9

1 stephdl 1.1 diff -up mailman-2.1.12/misc/mailman.in.initcleanup mailman-2.1.12/misc/mailman.in
2     --- mailman-2.1.12/misc/mailman.in.initcleanup 2009-10-05 09:09:35.000000000 -0400
3     +++ mailman-2.1.12/misc/mailman.in 2009-10-05 17:53:56.000000000 -0400
4     @@ -91,6 +91,8 @@ function start()
5     then
6     touch /var/lock/subsys/$prog
7     InstallCron
8     + else
9     + RETVAL=6
10     fi
11     echo
12     return $RETVAL
13     @@ -98,6 +100,8 @@ function start()
14    
15     function stop()
16     {
17     + if [ -f /var/lock/subsys/$prog ]
18     + then
19     echo -n $"Shutting down $prog: "
20     mailman-update-cfg
21     daemon $MAILMANCTL -q stop
22     @@ -108,6 +112,10 @@ function stop()
23     RemoveCron
24     fi
25     echo
26     + else
27     + echo $"$prog already stopped."
28     + RETVAL=0
29     + fi
30     return $RETVAL
31     }
32    
33     @@ -135,7 +143,7 @@ case "$1" in
34     RETVAL=$?
35     ;;
36    
37     -'condrestart')
38     +'condrestart'|'try-restart')
39     $MAILMANCTL -q -u status
40     retval=$?
41     if [ $retval -eq 0 ]
42     @@ -146,13 +154,20 @@ case "$1" in
43     ;;
44    
45     'status')
46     - $MAILMANCTL -u status
47     + output=$($MAILMANCTL -u status)
48     RETVAL=$?
49     + if [ $RETVAL -eq 3 -a -f /var/lock/subsys/$prog ]
50     + then
51     + echo $"$prog dead but subsys locked"
52     + RETVAL=2
53     + else
54     + echo $output
55     + fi
56     ;;
57    
58     *)
59     - echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|status}"
60     - RETVAL=3
61     + echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status}"
62     + RETVAL=2
63     ;;
64    
65     esac

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed