• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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