View Full Version : Cron error
spirit28
4th December 2006, 04:50 AM
After upgrading to version 8.1 I receive an error concerning a cron-job daily:
/bin/sh: /usr/local/psa/psa/run-parts.sh: No such file or directory
3a-informatique
4th December 2006, 06:14 AM
I`ve the same problem.
suse 9.3 64bits
society
4th December 2006, 06:24 AM
Change all crontabs from
/usr/local/psa/psa/run-parts.sh
to:
/usr/local/psa/bin/run-parts.sh
spirit28
4th December 2006, 06:42 AM
Originally posted by society
Change all crontabs from
/usr/local/psa/psa/run-parts.sh
to:
/usr/local/psa/bin/run-parts.sh
Thanks.
3a-informatique
4th December 2006, 07:27 AM
thanks spirit28
ItMan
5th December 2006, 08:42 AM
But dirs:
/etc/psa/plesk-cron.daily
/etc/psa/plesk-cron.weekly
/etc/psa/plesk-cron.monthly
don't really exists =(
3 0 * * * /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.daily
15 0 * * 7 /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.weekly
25 1 1 * * /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.monthly
3a-informatique
5th December 2006, 12:20 PM
hello,
connect to SSH (putty)
execute : crontab -e
ItMan
5th December 2006, 12:25 PM
>execute : crontab -e
And?
run-parts.sh
#!/bin/sh
DIR="$1"
if [ -z "$DIR" ]; then
echo "Usage: $0 <directory>"
exit 1
fi
for prg in "$DIR"/*; do
if ! [ -x "$prg" ]; then
continue
fi
if $prg; then
echo "*** $prg Completed ***"
else
status=$?
echo "*** $prg Failed (code=$status) ***"
fi
done
BUT
Dir /etc/psa/plesk-cron.daily isn't exist.
Dir /etc/psa/plesk-cron.weekly isn't exist.
Dir /etc/psa/plesk-cron.monthly isn't exist.
my crontab:
18,48 * * * * /usr/local/drweb/update/update.pl >/dev/null 2>&1
0 1 * * 1 /usr/local/psa/libexec/modules/watchdog/cp/secur-check
0 1 * * 1 /usr/local/psa/libexec/modules/watchdog/cp/send-report weekly
10 1 * * * /usr/local/psa/libexec/modules/watchdog/cp/clean-sysstats
15 1 * * * /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats day
15 1 * * 1 /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats week
15 1 1 * * /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats month
15 1 1 * * /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats year
20 1 * * * /usr/local/psa/libexec/modules/watchdog/cp/clean-events
0 3 * * 7 /usr/local/psa/libexec/modules/watchdog/cp/clean-reports
47 * * * * /usr/sbin/ntpdate -b -s 85.21.143.65 > /dev/null 2>&1
3 0 * * * /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.daily
15 0 * * 7 /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.weekly
25 1 1 * * /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.monthly
3a-informatique
5th December 2006, 12:30 PM
this crontab is correct
ItMan
5th December 2006, 12:33 PM
Originally posted by 3a-informatique
this crontab is correct
But, what will doing this jobs?
3 0 * * * /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.daily
15 0 * * 7 /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.weekly
25 1 1 * * /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.monthly
it must execute all scripts in this dirs, but dirs aren't exist
# cd /etc/psa/plesk-cron.daily
/etc/psa/plesk-cron.daily: No such file or directory.
gromith
5th December 2006, 12:42 PM
change it to /etc/psa/plesk-cron.daily/50plesk.daily.sh
ItMan
5th December 2006, 01:21 PM
Originally posted by gromith
change it to /etc/psa/plesk-cron.daily/50plesk.daily.sh
# cd /etc/psa/plesk-cron.daily
/etc/psa/plesk-cron.daily: No such file or directory.
Discogalaxy
6th December 2006, 10:09 AM
Same here.
Don't have /etc/psa/plesk-cron.daily/
But i have /etc/cron.daily/50plesk.daily.sh
I think u use Debian 3.1?
vBulletin® v3.6.12, Copyright ©2000-2008, Jelsoft Enterprises Ltd.