No hibernation with Webalizer running? Problem and solution.

All questions regarding system hibernation may be placed here. Thanks!
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu
2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.

No hibernation with Webalizer running? Problem and solution.

Postby henkg » Fri Apr 06, 2012 10:34 am

No hibernation when Webalizer is running? Problem and solution.

Every now and then Webalizer needs to update its webfiles from a logfile. The default Webalizer setting is every hour, so the disks will wake up every hour.

However, this setting can be changed, but not with DSM. You need terminal access.
Two files should be edited.
- /usr/local/etc/rc.d/Webalizer.sh
- /var/packages/Webalizer/scripts/start-stop-status

Look for the line starting with echo "13 * * * * *
The first parameter is minutes, the second one is hours. To change updating every hour, replace the second parameter (the asterisk character) with the hour you want (an hour your DS is awake mostly). Parameters must be separated by only tab characters, don't use space characters.

After changing both files, stop and restart Webalizer. Stopping will remove the cronjob from crontab, Restarting will add the job, now with the correct parameters.

Remarks:
- Make a backup copy before modding a file.
- A new DSM firmware / Webalizer install will overwrite the two files, so document your changes and apply them again.
- Modifying only /etc/crontab will work also, but the cronjob in crontab will be overwritten after a Webalizer Stop/Start, or a DSM reboot.
DS412+. 4x WD40EFRX, RAID5. DSM 5.0-4528
DS210j. 2x HD204UI, RAID1. DSM 5.0-4493 update 4
Windows 8.1 Pro. Router Netgear WNDR3700. Switch TP-Link TL-SG1008D. AcRyan Mini v1. UPS APC BE700G-GR. Ipcam Edimax IC-3010.
henkg
Seasoned
Seasoned
 
Posts: 530
Joined: Sat Sep 25, 2010 8:16 am
Location: Netherlands

Return to Hibernation Room

Who is online

Users browsing this forum: No registered users and 1 guest