D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => ShareCenter® Add-on Applications => Topic started by: vtverdohleb on December 04, 2014, 03:56:57 AM

Title: Add-on "vtcron v.1.03" for D-Link NAS
Post by: vtverdohleb on December 04, 2014, 03:56:57 AM
[Add-on] vtcron v.1.03

[Description]
The software utility Cron is a time-based job scheduler in Unix-like computer operating systems. People who set up and maintain software environments use cron to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals. It typically automates system maintenance or administration-though its general-purpose nature makes it useful for things like connecting to the Internet and downloading email at regular intervals.

[Version]
Add-on Package v1.03

[Maintainer]
vtverdohleb

[Download link]
DNS-320L vtcron Package v1.03_10272015_UA (http://dlink.vtverdohleb.org.ua/Add-On/list.php#DNS-320L%20vtcron%20Package%20v1.03_10272015_UA)
DNS-325 vtcron Package v1.03_10272015_UA (http://dlink.vtverdohleb.org.ua/Add-On/list.php#DNS-325%20vtcron%20Package%20v1.03_10272015_UA)
DNS-327L vtcron Package v1.03_10272015_UA (http://dlink.vtverdohleb.org.ua/Add-On/list.php#DNS-327L%20vtcron%20Package%20v1.03_10272015)
DNS-340L vtcron Package v1.03_10272015_UA (http://dlink.vtverdohleb.org.ua/Add-On/list.php#DNS-340L%20vtcron%20Package%20v1.03_10272015)
DNS-345 vtcron Package v1.03_10272015_UA (http://dlink.vtverdohleb.org.ua/Add-On/list.php#DNS-345%20vtcron%20Package%20v1.03_10272015_UA)

[Resource]
Cron Wiki http://en.wikipedia.org/wiki/Cron (http://en.wikipedia.org/wiki/Cron)
Other Add-ons http://dlink.vtverdohleb.org.ua/Add-On/ (http://dlink.vtverdohleb.org.ua/Add-On/)

[Remarks]
Download and install the vtcron Add-On.
Click the link for the vtcron web interface and configure it.
Title: Re: Add-on "vtcron v.1.02" for D-Link NAS
Post by: Blasse on October 26, 2015, 12:04:36 PM
Hi,

I have installed vtcron on my DNS-320L, but script added through it doesn't start. But if I login to my NAS using ssh and manually edit crontabs it works just fine. Could you help me debug that problem?

When I manually restart vtcron it gives in terminal:
/mnt/HD/HD_a2/Nas_Prog/vtcron # ./restartcrond.sh
Restart Path is /mnt/HD/HD_a2/Nas_Prog/vtcron
0
cronb: applet not found
/mnt/HD/HD_a2/Nas_Prog/vtcron #

Also, ps doesn't show cronb as running...
Title: Re: Add-on "vtcron v.1.02" for D-Link NAS
Post by: vtverdohleb on October 27, 2015, 03:07:47 AM
Hi,

I have installed vtcron on my DNS-320L, but script added through it doesn't start. But if I login to my NAS using ssh and manually edit crontabs it works just fine. Could you help me debug that problem?

When I manually restart vtcron it gives in terminal:
/mnt/HD/HD_a2/Nas_Prog/vtcron # ./restartcrond.sh
Restart Path is /mnt/HD/HD_a2/Nas_Prog/vtcron
0
cronb: applet not found
/mnt/HD/HD_a2/Nas_Prog/vtcron #

Also, ps doesn't show cronb as running...

You are right, my mistake. I didn't take into account that not every firmware is embedded Perl.
Fixed. Reinstall vtcron v1.03 (http://dlink.vtverdohleb.org.ua/Add-On/list.php#DNS-320L%20vtcron%20Package%20v1.03_10272015_UA)
Title: Re: Add-on "vtcron v.1.03" for D-Link NAS
Post by: Blasse on October 27, 2015, 03:31:38 AM
Seems to work fine now. Thanks! :)
Title: Re: Add-on "vtcron v.1.03" for D-Link NAS
Post by: Matt JT on January 17, 2016, 05:25:36 AM
Hi there

Is there a package available for vtcron for  DNS-320B?

I know that add ons are not officially supported for this version but I have had success installing add ons where the package is available using the instructions here http://forums.dlink.com/index.php?topic=62804 (http://forums.dlink.com/index.php?topic=62804)
Title: Re: Add-on "vtcron v.1.03" for D-Link NAS
Post by: vtverdohleb on January 19, 2016, 01:25:47 PM
The reason why me personally? That's the reason http://forums.dlink.com/index.php?topic=64029.0
Title: Re: Add-on "vtcron v.1.03" for D-Link NAS
Post by: peteve on April 11, 2016, 07:32:06 AM
* DNS-320L
* vtcron
* 1.03
* Command does not run at the desired time. And if I add a @reboot, it seems to fall into a bootloop. Device firmware 1.06
Title: Re: Add-on "vtcron v.1.03" for D-Link NAS
Post by: vtverdohleb on April 11, 2016, 11:56:05 AM
* DNS-320L
* vtcron
* 1.03
* Command does not run at the desired time. And if I add a @reboot, it seems to fall into a bootloop. Device firmware 1.06

The addon is not a full-fledged "cron daemon". "Cron" of busybox package. this is more than enough for my needs. "@reboot" In busybox not.
Title: Re: Add-on "vtcron v.1.03" for D-Link NAS
Post by: peteve on April 16, 2016, 08:04:55 AM
Any documents on how to use this add-on?
Title: Re: Add-on "vtcron v.1.03" for D-Link NAS
Post by: personne on April 21, 2016, 06:28:17 AM
Hello,

I try to delete files with more than 30 days with the command "find /mnt/HD/HD_a2/CamBas -type f -mtime +30 -exec rm -f {} \;" but adds vtcron \ :
find /mnt/HD/HD_a2/CamBas -type f -mtime +30 -exec rm -f {} \; become find /mnt/HD/HD_a2/CamBas -type f -mtime +30 -exec rm -f {} \\\;
Title: Re: Add-on "vtcron v.1.03" for D-Link NAS
Post by: vertmanx on November 12, 2016, 06:19:40 PM
Any documents on how to use this add-on?

I'm looking for the same thing as well...
Title: Re: Add-on "vtcron v.1.03" for D-Link NAS
Post by: Nibbik on March 16, 2019, 06:55:40 AM
Looks like vtcron stops working every few days: I made a cronjob to add a line to a log every 5 minutes, so looking at my log I can see now that 2 days ago vtcron stopped working again. It restarts when I make a change in cronjobs. This happens every x days.
Why does it stop, and how can I let it restart automatically?
PM: D-link DNS-327L NAS, firmware v1.10, vtcron v1.03
Title: Re: Add-on "vtcron v.1.03" for D-Link NAS
Post by: vtverdohleb on March 19, 2019, 09:12:44 AM
Looks like vtcron stops working every few days: I made a cronjob to add a line to a log every 5 minutes, so looking at my log I can see now that 2 days ago vtcron stopped working again.

I personally use "vtcron" to collect backups to my NAS. Everything works perfectly.

View crontab system log
/mnt/HD/HD_a2/Nas_Prog/vtcron/log/crond.log
maybe you can find the cause of the problem in the log