Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] rebuilding from scratch using ISO 0.9.0

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: "Robert Helgesson" <rycee AT home.se>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] rebuilding from scratch using ISO 0.9.0
  • Date: Mon, 2 Feb 2004 13:43:14 +0100

On Mon, Feb 02, 2004 at 11:30:42 +0100, Lyon Lemmens wrote:
[snip]
> - spamassassin doesn't include an init.d file for the spamd
>
> <cut>
> #!/bin/sh
>
> NEEDS=/usr/bin/spamd
> PROGRAM=/bin/false
> RUNLEVEL=3
>
> . /etc/init.d/smgl_init
>
> start()
> {
> echo "Starting spam killer"
> loadproc spamd -d -u mail -p 400
> evaluate_retval
> }
> stop()
> {
> echo "Stopping spam killer"
> killproc spamd
> evaluate_retval
> }
> restart()
> {
> stop
> start
> }
> usage()
> {
> echo "Usage: $0 {start|stop|restart}"
> }
> </cut>

That init script isn't correct. I've added a version that should work
better below, unconfirmed though as I don't use spamassassin.

<cut>
#!/bin/bash

PROGRAM=/usr/bin/spamd
ARGS="-d -u mail -p 400"
RUNLEVEL=3
NEEDS="+network +remove_fs"

. /etc/init.d/smgl_init
</cut>

--
/ Robert Helgesson |-- rycee AT home.se --\
\-- GPG Key ID: 41E95A5B --| http://www.rycee.cx/ /




Archive powered by MHonArc 2.6.24.

Top of Page