Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:crameleon:branches:server:mail
spamassassin
timed-sa-update
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File timed-sa-update of Package spamassassin
#!/bin/bash # # paranoia settings # umask 022 PATH=/sbin:/bin:/usr/sbin:/usr/bin export PATH if [ -e /etc/sysconfig/spamd ] then . /etc/sysconfig/spamd fi /usr/bin/sa-update &> /dev/null result=$? if [ "$SPAM_SA_COMPILE" = "yes" -a $result = 0 ] ; then /usr/bin/sa-compile &> /dev/null fi if [ "$SPAM_SPAMD_RESTART" = "yes" -a $result = 0 ] ; then /sbin/service spamd try-restart &> /dev/null fi if [ "$SPAM_AMAVISD_RESTART" = "yes" -a $result = 0 ] ; then /sbin/service amavis try-restart &> /dev/null fi if [ $result = 2 ] ; then echo "sa-update lint check failed" | \ logger -t timed-sa-update fi if [ $result -ge 3 ] ; then echo "sa-update failed, exitcode $result" | \ logger -t timed-sa-update fi exit 0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor