Gentoo Archives: gentoo-commits

From: "Jason Donenfeld (zx2c4)" <zx2c4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-mta/opensmtpd/files: smtpd.initd
Date: Thu, 28 Feb 2013 21:42:47
Message-Id: 20130228214243.0E6542171D@flycatcher.gentoo.org
1 zx2c4 13/02/28 21:42:42
2
3 Modified: smtpd.initd
4 Log:
5 Fix AR and make init script be simpler.
6
7 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key A5DE03AE)
8
9 Revision Changes Path
10 1.2 mail-mta/opensmtpd/files/smtpd.initd
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/opensmtpd/files/smtpd.initd?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/opensmtpd/files/smtpd.initd?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/opensmtpd/files/smtpd.initd?r1=1.1&r2=1.2
15
16 Index: smtpd.initd
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/files/smtpd.initd,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- smtpd.initd 28 Feb 2013 17:57:15 -0000 1.1
23 +++ smtpd.initd 28 Feb 2013 21:42:42 -0000 1.2
24 @@ -1,20 +1,16 @@
25 #!/sbin/runscript
26 # Copyright 1999-2013 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/files/smtpd.initd,v 1.1 2013/02/28 17:57:15 zx2c4 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/files/smtpd.initd,v 1.2 2013/02/28 21:42:42 zx2c4 Exp $
30 +
31 +command="smtpd"
32 +description="Lightweight but featured daemon from OpenBSD"
33
34 depend() {
35 need net
36 }
37 -
38 -start() {
39 - ebegin "Starting OpenSMTPD"
40 - start-stop-daemon --start --quiet --exec /usr/sbin/smtpd
41 - eend ${?}
42 -}
43 -
44 stop() {
45 - ebegin "Stopping OpenSMTPD"
46 - /usr/sbin/smtpctl stop
47 - eend ${?}
48 + ebegin "Stopping smtpd"
49 + smtpctl stop
50 + eend $?
51 }