* [gentoo-commits] gentoo-x86 commit in mail-filter/spamassassin/files: 3.3.1-spamd.init
@ 2010-04-06 1:46 Jeremy Olexa (darkside)
0 siblings, 0 replies; 5+ messages in thread
From: Jeremy Olexa (darkside) @ 2010-04-06 1:46 UTC (permalink / raw
To: gentoo-commits
darkside 10/04/06 01:46:38
Added: 3.3.1-spamd.init
Log:
Version bump. Thanks to David Abbott and others in bug 301119
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Revision Changes Path
1.1 mail-filter/spamassassin/files/3.3.1-spamd.init
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init?rev=1.1&content-type=text/plain
Index: 3.3.1-spamd.init
===================================================================
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v 1.1 2010/04/06 01:46:38 darkside Exp $
# NB: Config is in /etc/conf.d/spamd
# Provide a default location if they haven't in /etc/conf.d/spamd
PIDFILE=${PIDFILE:-/var/run/spamd.pid}
opts="reload"
depend() {
need net
before mta
use logger
@USEPOSTGRES@ use postgresql
@USEMYSQL@ use mysql
}
start() {
ebegin "Starting spamd"
start-stop-daemon --start --quiet \
--name spamd \
--nicelevel ${SPAMD_NICELEVEL:-0} \
--pidfile ${PIDFILE} \
--exec /usr/sbin/spamd -- -d -r ${PIDFILE} \
${SPAMD_OPTS}
if ! [ -f "${PIDFILE}" ]; then
sleep 1
fi
eend $? "Failed to start spamd"
}
stop() {
ebegin "Stopping spamd"
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
eend $? "Failed to stop spamd"
}
reload() {
ebegin "Reloading configuration"
kill -HUP $(< ${PIDFILE})
eend $?
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo-x86 commit in mail-filter/spamassassin/files: 3.3.1-spamd.init
@ 2010-04-07 4:13 Jeremy Olexa (darkside)
0 siblings, 0 replies; 5+ messages in thread
From: Jeremy Olexa (darkside) @ 2010-04-07 4:13 UTC (permalink / raw
To: gentoo-commits
darkside 10/04/07 04:13:25
Modified: 3.3.1-spamd.init
Log:
Revision bump to fix the init script. New behavior reports if it didn't start properly instead of always reporting it started. Thanks to Polynomial-C for reporting
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Revision Changes Path
1.2 mail-filter/spamassassin/files/3.3.1-spamd.init
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init?r1=1.1&r2=1.2
Index: 3.3.1-spamd.init
===================================================================
RCS file: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- 3.3.1-spamd.init 6 Apr 2010 01:46:38 -0000 1.1
+++ 3.3.1-spamd.init 7 Apr 2010 04:13:24 -0000 1.2
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v 1.1 2010/04/06 01:46:38 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v 1.2 2010/04/07 04:13:24 darkside Exp $
# NB: Config is in /etc/conf.d/spamd
@@ -25,11 +25,12 @@
--nicelevel ${SPAMD_NICELEVEL:-0} \
--pidfile ${PIDFILE} \
--exec /usr/sbin/spamd -- -d -r ${PIDFILE} \
- ${SPAMD_OPTS}
+ ${SPAMD_OPTS}
+ retval=$?
if ! [ -f "${PIDFILE}" ]; then
sleep 1
fi
- eend $? "Failed to start spamd"
+ eend ${retval} "Failed to start spamd"
}
stop() {
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo-x86 commit in mail-filter/spamassassin/files: 3.3.1-spamd.init
@ 2011-09-05 17:02 Torsten Veller (tove)
0 siblings, 0 replies; 5+ messages in thread
From: Torsten Veller (tove) @ 2011-09-05 17:02 UTC (permalink / raw
To: gentoo-commits
tove 11/09/05 17:02:51
Modified: 3.3.1-spamd.init
Log:
opts => extra_commands for init script (#381841 by Nik Warburton)
(Portage version: 2.2.0_alpha53/cvs/Linux x86_64)
Revision Changes Path
1.3 mail-filter/spamassassin/files/3.3.1-spamd.init
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init?r1=1.2&r2=1.3
Index: 3.3.1-spamd.init
===================================================================
RCS file: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- 3.3.1-spamd.init 7 Apr 2010 04:13:24 -0000 1.2
+++ 3.3.1-spamd.init 5 Sep 2011 17:02:51 -0000 1.3
@@ -1,14 +1,14 @@
#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v 1.2 2010/04/07 04:13:24 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v 1.3 2011/09/05 17:02:51 tove Exp $
# NB: Config is in /etc/conf.d/spamd
# Provide a default location if they haven't in /etc/conf.d/spamd
PIDFILE=${PIDFILE:-/var/run/spamd.pid}
-opts="reload"
+extra_commands="reload"
depend() {
need net
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo-x86 commit in mail-filter/spamassassin/files: 3.3.1-spamd.init
@ 2011-09-14 23:00 Lars Wendler (polynomial-c)
0 siblings, 0 replies; 5+ messages in thread
From: Lars Wendler (polynomial-c) @ 2011-09-14 23:00 UTC (permalink / raw
To: gentoo-commits
polynomial-c 11/09/14 23:00:38
Modified: 3.3.1-spamd.init
Log:
Moved reload option from extra_commands to extra_started_commands
(Portage version: 2.2.0_alpha56/cvs/Linux x86_64)
Revision Changes Path
1.4 mail-filter/spamassassin/files/3.3.1-spamd.init
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init?r1=1.3&r2=1.4
Index: 3.3.1-spamd.init
===================================================================
RCS file: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- 3.3.1-spamd.init 5 Sep 2011 17:02:51 -0000 1.3
+++ 3.3.1-spamd.init 14 Sep 2011 23:00:38 -0000 1.4
@@ -1,14 +1,14 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v 1.3 2011/09/05 17:02:51 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v 1.4 2011/09/14 23:00:38 polynomial-c Exp $
# NB: Config is in /etc/conf.d/spamd
# Provide a default location if they haven't in /etc/conf.d/spamd
PIDFILE=${PIDFILE:-/var/run/spamd.pid}
-extra_commands="reload"
+extra_started_commands="reload"
depend() {
need net
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo-x86 commit in mail-filter/spamassassin/files: 3.3.1-spamd.init
@ 2012-08-29 9:32 Stefan Briesenick (sbriesen)
0 siblings, 0 replies; 5+ messages in thread
From: Stefan Briesenick (sbriesen) @ 2012-08-29 9:32 UTC (permalink / raw
To: gentoo-commits
sbriesen 12/08/29 09:32:52
Modified: 3.3.1-spamd.init
Log:
fixed init-script reload function. Now it can also be used with a posix-shell like 'dash'.
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
Revision Changes Path
1.5 mail-filter/spamassassin/files/3.3.1-spamd.init
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init?r1=1.4&r2=1.5
Index: 3.3.1-spamd.init
===================================================================
RCS file: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- 3.3.1-spamd.init 14 Sep 2011 23:00:38 -0000 1.4
+++ 3.3.1-spamd.init 29 Aug 2012 09:32:52 -0000 1.5
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v 1.4 2011/09/14 23:00:38 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v 1.5 2012/08/29 09:32:52 sbriesen Exp $
# NB: Config is in /etc/conf.d/spamd
@@ -14,8 +14,8 @@
need net
before mta
use logger
-@USEPOSTGRES@ use postgresql
-@USEMYSQL@ use mysql
+@USEPOSTGRES@ use postgresql
+@USEMYSQL@ use mysql
}
start() {
@@ -41,6 +41,6 @@
reload() {
ebegin "Reloading configuration"
- kill -HUP $(< ${PIDFILE})
+ start-stop-daemon --signal HUP --quiet --pidfile ${PIDFILE}
eend $?
}
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-08-29 9:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-14 23:00 [gentoo-commits] gentoo-x86 commit in mail-filter/spamassassin/files: 3.3.1-spamd.init Lars Wendler (polynomial-c)
-- strict thread matches above, loose matches on Subject: below --
2012-08-29 9:32 Stefan Briesenick (sbriesen)
2011-09-05 17:02 Torsten Veller (tove)
2010-04-07 4:13 Jeremy Olexa (darkside)
2010-04-06 1:46 Jeremy Olexa (darkside)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox