Perfect, that did the trick.  Thanks for your help with all this!

Cheers,

Jeff

Bowie Bailey wrote:
From: Jeffrey Duncan [mailto:[EMAIL PROTECTED]
Great I am almost there!  A cpuple more things ...
How do I get it to start on boot? The same way with chkconfig spamd on ?

and

The STOP fails ..

# service spamd start
Starting SpamAssassin daemon:
# service spamd stop
Stopping SpamAssassin daemon: cat: /var/run/spamd/spamd.pid: No such file or directory kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]

The script tries to record the pid in /var/run/spamd/spamd.pid.  If
the directory doesn't exist (or isn't writable), it fails.

What you need to do is create the directory and chown it to the user
spamd runs as.

For example (assuming your spamd user is 'spamscan'):

    mkdir /var/run/spamd
    chown spamscan /var/run/spamd

The chkconfig information is already in the file.  To get it to run at
startup, simply do this:

    chkconfig --add spamd

This will cause it to start in runlevels 2-5.  To change the runlevel
settings, take a look at the man page for chkconfig.  It's very easy
to use.

Bowie


Reply via email to