* [gentoo-user] how to update spamassassin with sa-update
@ 2015-04-26 11:47 lee
2015-04-26 14:55 ` Alex Brandt
0 siblings, 1 reply; 3+ messages in thread
From: lee @ 2015-04-26 11:47 UTC (permalink / raw
To: gentoo-user
Hi,
installation notes for spamassassin say you need to do the rule updates
yourself by running 'sa-update'.
Now I'd do that with a crontab entry, and I don't want to add it to
root's crontab. As what user should I run it, and where do I put the
crontab entry for it?
--
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us. Finally, this fear has become reasonable.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] how to update spamassassin with sa-update
2015-04-26 11:47 [gentoo-user] how to update spamassassin with sa-update lee
@ 2015-04-26 14:55 ` Alex Brandt
2015-04-26 17:41 ` Michael Orlitzky
0 siblings, 1 reply; 3+ messages in thread
From: Alex Brandt @ 2015-04-26 14:55 UTC (permalink / raw
To: gentoo-user; +Cc: lee
On Sunday, April 26, 2015 13:47:46 lee wrote:
> Hi,
>
> installation notes for spamassassin say you need to do the rule updates
> yourself by running 'sa-update'.
>
> Now I'd do that with a crontab entry, and I don't want to add it to
> root's crontab. As what user should I run it, and where do I put the
> crontab entry for it?
I use a cronjob in /etc/cron.hourly so it runs as part of the system crontab.
Regards,
--
Alex Brandt
Software Architect for Rackspace and Developer for Gentoo
http://blog.alunduil.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] how to update spamassassin with sa-update
2015-04-26 14:55 ` Alex Brandt
@ 2015-04-26 17:41 ` Michael Orlitzky
0 siblings, 0 replies; 3+ messages in thread
From: Michael Orlitzky @ 2015-04-26 17:41 UTC (permalink / raw
To: gentoo-user
On 04/26/2015 10:55 AM, Alex Brandt wrote:
> On Sunday, April 26, 2015 13:47:46 lee wrote:
>> Hi,
>>
>> installation notes for spamassassin say you need to do the rule updates
>> yourself by running 'sa-update'.
>>
>> Now I'd do that with a crontab entry, and I don't want to add it to
>> root's crontab. As what user should I run it, and where do I put the
>> crontab entry for it?
>
> I use a cronjob in /etc/cron.hourly so it runs as part of the system crontab.
>
Same here (cron.daily)... you might be able to get away with running it
under a non-root account, but it would need write access to (at least)
/var/lib/spamassassin.
The sa-update program is noisy so I wound up with this:
#!/bin/bash
# First, silence stdout.
exec 1>/dev/null
# This thing spits out its progress to stderr.
sa-update 2>/dev/null
# Exit code 0 means new updates were installed. Exit code 1 means we
# were already up-to-date. Anything else is failure.
if [ $? -eq 0 ]; then
sa-compile
# Are you using amavis?
# /etc/init.d/amavisd reload
fi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-26 17:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-26 11:47 [gentoo-user] how to update spamassassin with sa-update lee
2015-04-26 14:55 ` Alex Brandt
2015-04-26 17:41 ` Michael Orlitzky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox