• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Plesk 11.5: /etc/init.d/psa-spamassassin: not found

igraf

Regular Pleskian
Hello
I have problems with updates from Spamassassin

under "/var/log/sa-update.log" get the following error message
/etc/cron.daily/60sa-update: 9: /etc/init.d/psa-spamassassin: not found

psa-spamassassin does not exist, only spamassassin
http://kb.parallels.com/de/111283

how can i fix the error?

Debian 6.0.8
11.5.30 Update #25

igraf
 
Last edited:
What are the contents of your /etc/cron.daily/60sa-update?

Normally it should be:
Code:
#!/bin/sh
### Copyright 1999-2012. Parallels IP Holdings GmbH. All Rights Reserved.

sa_update()
{
        /usr/bin/sa-update
        local rc="$?"
        case $rc in
                # Only restart spamd if sa-update returns 0, meaning it updated the rules
                0) env PATH=/opt/psa/admin/sbin:/usr/local/psa/admin/sbin:$PATH spammng --condrestart ;;
                # If sa-update returns 1 then there are no updates
                1) exit 0 ;;
        esac
        return $rc
}

sa_update >> /var/log/sa-update.log 2>&1
 
hi
I have two files
can i delete "60SA-update" and "60SA-update.dpkg-dist" rename to "60SA-update"?

60sa-update
Code:
#!/bin/sh

/usr/bin/sa-update >> /var/log/sa-update.log 2>&1
ERR=$?

# Only restart spamd if sa-update returns 0, meaning it updated the rules
if [ $ERR -eq 0 ]; then
	/etc/init.d/psa-spamassassin restart >> /var/log/sa-update.log 2>&1
fi

# if sa-update returns 1 when there are no updates
if [ $ERR -eq 1 ]; then
	exit 0;
fi

exit $ERR


60sa-update.dpkg-dist
Code:
#!/bin/sh
### Copyright 1999-2012. Parallels IP Holdings GmbH. All Rights Reserved.

sa_update()
{
	/usr/bin/sa-update
	local rc="$?"
	case $rc in
		# Only restart spamd if sa-update returns 0, meaning it updated the rules
		0) env PATH=/opt/psa/admin/sbin:/usr/local/psa/admin/sbin:$PATH spammng --condrestart ;;
		# If sa-update returns 1 then there are no updates
		1) exit 0 ;;
	esac
	return $rc
}

sa_update >> /var/log/sa-update.log 2>&1
 
Last edited:
Back
Top