• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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