Jack Gostl wrote:
I'm trying to understand saupdate and how to use it. I have two questions. I'm running AIX 5.3. Question 1: I run the following command: /usr/opt/perl5/bin/sa-update --nogpg -D --updatedir /tmp/update It finishes with a return code of 1. It sounds to me like something failed. I can't find any documentation on the return codes, so I'm not sure where to take this. Here is the debug output: Use of uninitialized value in concatenation (.) or string at /usr/opt/perl5/lib/5.8.2/Scalar/Util.pm line 30.
[27694] dbg: logger: adding facilities: all
[27694] dbg: logger: logging level is DBG
[27694] dbg: generic: SpamAssassin version 3.1.7
[27694] dbg: config: score set 0 chosen.
[27694] dbg: message: ---- MIME PARSER START ----
[27694] dbg: message: main message type: text/plain
[27694] dbg: message: parsing normal part
[27694] dbg: message: added part, type: text/plain
[27694] dbg: message: ---- MIME PARSER END ----
[27694] dbg: dns: is Net::DNS::Resolver available? yes
[27694] dbg: dns: Net::DNS version: 0.59
[27694] dbg: generic: sa-update version svn454083
[27694] dbg: generic: using update directory: /tmp/update
[27694] dbg: diag: perl platform: 5.008002 aix
[27694] dbg: diag: module installed: Digest::SHA1, version 2.11
[27694] dbg: diag: module installed: Net::SMTP, version 2.29
[27694] dbg: diag: module installed: Mail::SPF::Query, version 1.999001
[27694] dbg: diag: module installed: IP::Country::Fast, version 604.001
[27694] dbg: diag: module not installed: Razor2::Client::Agent ('require' failed)
[27694] dbg: diag: module installed: Net::Ident, version 1.20
[27694] dbg: diag: module not installed: IO::Socket::INET6 ('require' failed)
[27694] dbg: diag: module not installed: IO::Socket::SSL ('require' failed)
[27694] dbg: diag: module installed: Time::HiRes, version 1.52
[27694] dbg: diag: module installed: DBI, version 1.53
[27694] dbg: diag: module installed: Getopt::Long, version 2.34
[27694] dbg: diag: module installed: LWP::UserAgent, version 2.003
[27694] dbg: diag: module installed: HTTP::Date, version 1.44
[27694] dbg: diag: module installed: Archive::Tar, version 1.30
[27694] dbg: diag: module installed: IO::Zlib, version 1.04
[27694] dbg: diag: module installed: DB_File, version 1.814
[27694] dbg: diag: module installed: HTML::Parser, version 3.35
[27694] dbg: diag: module installed: MIME::Base64, version 2.21
[27694] dbg: diag: module installed: Net::DNS, version 0.59
[27694] dbg: channel: attempting channel updates.spamassassin.org
[27694] dbg: channel: update directory /tmp/update/updates_spamassassin_org
[27694] dbg: channel: channel cf file /tmp/update/updates_spamassassin_org.cf [27694] dbg: channel: channel pre file /tmp/update/updates_spamassassin_org.pre
[27694] dbg: channel: metadata version = 477972
[27694] dbg: dns: 7.1.3.updates.spamassassin.org => 477972, parsed as 477972
[27694] dbg: channel: current version is 477972, new version is 477972, skipping channel
[27694] dbg: diag: updates complete, exiting with code 1

man sa-update:

EXIT CODES
An exit code of 0 means an update was available, and was downloaded and installed successfully.

       An exit code of 1 means no fresh updates were available.

An exit code of 4 or higher, indicates that errors occurred while attempting to download and extract updates.

Question 2: After running saupdate, I assume that all I have to do is to restart spamd. How can I force spamd to restart and reload its rules? Can a do a simple kill -1? Or do I need an actual kill and restart?

That is highly dependent upon how spamd is invoked.

--
Craig

Reply via email to