| Server IP : 85.214.239.14 / Your IP : 216.73.216.53 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/2/cwd/proc/3/cwd/proc/3/root/proc/3/cwd/etc/cron.daily/ |
Upload File : |
#!/bin/sh
# Copyright 2007,2008 Duncan Findlay <duncf@debian.org>
# Copyright 2008-2019 Noah Meyerhans <noahm@debian.org>
# This script does not do anything by default. If you are using systemd,
# invoke "systemctl enable --now spamassassin-maintenance.timer" to enable
# spamassassin's daily maintenance systemd timer. If you are not using
# systemd, or otherwise prefer to use cron for daily maintenance, set CRON=1
# in /etc/cron.daily/spamassassin
CRON=0
test -f /etc/default/spamassassin && . /etc/default/spamassassin
test -x /usr/bin/sa-update || exit 0
command -v gpg > /dev/null || exit 0
if [ "$CRON" = "0" ] ; then
exit 0
fi
# If the systemd timer is active, there's nothing else for us to do:
if [ -d /run/systemd/system ] && \
systemctl is-enabled --quiet spamassassin-maintenance.timer; then
exit 0
fi
# If we're running under systemd, and we reach this point, then we can
# safely convert to the timer. If you'd rather run the daily
# maintenance task from cron, even if systemd is present, then create
# a file named /etc/spamassassin/skip-timer-conversion to avoid
# running this conversion.
if [ -d /run/systemd/system ] && [ ! -e /etc/spamassassin/skip-timer-conversion ]; then
echo "Converting /etc/cron.daily/spamassassin to systemd timer" |
logger -p mail.notice
systemctl enable spamassassin-maintenance.timer
systemctl start spamassassin-maintenance.service
exit 0
fi
# Sleep for up to 3600 seconds if not running interactively
if [ ! -t 0 ]; then
RANGE=3600
number=`od -vAn -N2 -tu4 < /dev/urandom`
number=`expr $number "%" $RANGE`
sleep $number
fi
exec /usr/sbin/spamassassin-maint