crontab polluted by bwmon

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
User avatar
flaurens
Posts: 2
Joined: Wed Oct 28, 2009 10:37 am

crontab polluted by bwmon

Post by flaurens »

A small bug in 1.0.14 (installed on a Fonera+):
Across reboots, the crontab file is polluted by duplicate occurrences of the entry:
0 0,4,8,12,16,20 * * * /tmp/do_bw_backup.sh

The culprit seems to be script /etc/init.d/bwmon_gargoyle, which should I guess be changed as follows:
--------------------------------------------------
--- /rom/etc/init.d/bwmon_gargoyle Tue Oct 13 02:50:48 2009
+++ /etc/init.d/bwmon_gargoyle Wed Oct 28 13:54:53 2009
@@ -175,7 +175,7 @@
fi

touch /etc/crontabs/root
- cat /etc/crontabs/root | grep -v "bw_get" > "$tmp_cron"
+ cat /etc/crontabs/root | grep -v "$backup_script"> "$tmp_cron"
echo "0 0,4,8,12,16,20 * * * $backup_script" >> "$tmp_cron"

echo "#!/bin/sh" > "$backup_script"
--------------------------------------------------
Cheers,
--FL

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: crontab polluted by bwmon

Post by Eric »

Yup, you're right! Applied in SVN revision r628, which will be included in future releases.

Thanks!

Post Reply