Hello,
I have a DS207+ firm 598 and SSOD beta 10 and Slimserver (6.5). I activate the syno tools for see what process activate the disk and the trace is, at each hour:
May 22 19:13:42 kernel: [/etc/localtime] opened by pid 2051 [u: (/volume1/SSODS/sbin/thttpd), comm: (thttpd)]
So i think it is a normal trace but i don't know how stop this log in SSOD/sbin/thttpd. If soneone can help me ...
After, when another PC is running i have also this disk wake up :
May 22 19:14:20 kernel: [] opened by pid 1318 [u: (/usr/syno/sbin/smbd), comm: (smbd)]
Can i stop this ?
Results 1 to 10 of 46
Thread: SSOD thttpd and localtime
-
2008-05-22, 14:06 #1Junior Member
- Join Date
- Jan 2008
- Posts
- 11
SSOD thttpd and localtime
-
2008-05-22, 16:00 #2
Hmm.. I wonder what thttpd does with /etc/localtime.. You might want to check the thttpd website and mailing list. Once your SSODS is configured you could safely disable thttpd (/volume1/SSODS/etc/init.d/thttpd-ssods stop). Maybe there's a config option for thttpd to disable this behaviour (let me know if you find it). To permanently disable thttpd, delete the S... symlink to thttpd-ssods in /volume1/SSODS/etc/init.d
Probably not at all (unless you want to disable samba in /usr/syno/etc/rc.d or somewhere around there). I'd check the synology forum for this.After, when another PC is running i have also this disk wake up :
May 22 19:14:20 kernel: [] opened by pid 1318 [u: (/usr/syno/sbin/smbd), comm: (smbd)]
Can i stop this ?
Anyway, how did you do this "trace"? That's not strace, isn't it?
flipCheck out flipflip's Squeezebox Server On (some) DiskStation (SSODS) and on (some) TurboStations (SSOTS) and some other devices! Please do NOT file SSODS bugs in (SD's) bugzilla. Use the forums. And only the forums. Thanks.
-
2008-05-23, 05:16 #3Junior Member
- Join Date
- Jan 2008
- Posts
- 11
Thanks for the reply. I try this night.
for the trace it is a synology cmd :
syno_hibernate_debug_tool --enable 10
and
syno_hibernate_debug_tool --disable
find here :
http://www.synology.com/wiki/index.php/Spindown_issues
-
2008-05-24, 01:17 #4
Hello,
Exactly the same behaviour for me with SSODS 3b12, SqueezeCenter 7.01 and firmware 598 on my CS407.
SSDOS is actually stopped here, but I confirm every hour sharp, thttpd uses /etc/localtime waking up HDDs.
See extract of the log below :
Code:May 24 05:48:44 kernel: [/etc/localtime] opened by pid 2707 [u:(/volume1/SSODS/sbin/thttpd), comm:(thttpd)] May 24 05:48:56 scemd: SCEMD: disk 1 wake up from hibernation May 24 05:48:56 kernel: [/var/log/messages] opened by pid 1052 [u:(/sbin/syslogd), comm:(syslogd)] May 24 05:49:03 scemd: SCEMD: disk 2 wake up from hibernation May 24 05:49:10 scemd: SCEMD: disk 3 wake up from hibernation May 24 05:49:17 scemd: SCEMD: disk 4 wake up from hibernation May 24 06:48:44 kernel: [/etc/localtime] opened by pid 2707 [u:(/volume1/SSODS/sbin/thttpd), comm:(thttpd)] May 24 06:48:56 scemd: SCEMD: disk 4 wake up from hibernation May 24 06:48:56 kernel: [/var/log/messages] opened by pid 1052 [u:(/sbin/syslogd), comm:(syslogd)] May 24 06:49:03 scemd: SCEMD: disk 1 wake up from hibernation May 24 06:49:10 scemd: SCEMD: disk 2 wake up from hibernation May 24 06:49:17 scemd: SCEMD: disk 3 wake up from hibernation May 24 07:48:44 kernel: [/etc/localtime] opened by pid 2707 [u:(/volume1/SSODS/sbin/thttpd), comm:(thttpd)] May 24 07:48:56 scemd: SCEMD: disk 4 wake up from hibernation
I quickly checked source code of thttpd.
In config.h, there is a constant STATS_TIME set to 3600.
It seems this constant has to be undefined before compiling thttpd to disable any stats logging.
OcococLast edited by ocococ; 2008-05-24 at 03:12.
-
2008-05-24, 09:28 #5Check out flipflip's Squeezebox Server On (some) DiskStation (SSODS) and on (some) TurboStations (SSOTS) and some other devices! Please do NOT file SSODS bugs in (SD's) bugzilla. Use the forums. And only the forums. Thanks.
-
2008-05-24, 13:55 #6Junior Member
- Join Date
- Jan 2008
- Posts
- 11
Thanks, It's working. Now we have SSOD web and no HD wake up ! Even if this is not first important for you, thanks again.
-
2008-05-24, 14:44 #7
Cool. Thanks for reporting and testing. I'll include an updated thttpd in the next release.
I'm always happy to include suggestions from users. You're report/research has actually been the first useful suggestion, which has been addressed to me, regarding this issue.
Best regards,
flipCheck out flipflip's Squeezebox Server On (some) DiskStation (SSODS) and on (some) TurboStations (SSOTS) and some other devices! Please do NOT file SSODS bugs in (SD's) bugzilla. Use the forums. And only the forums. Thanks.
-
2008-05-25, 09:28 #8
Hi,
I confirm it works for me too.
Keep up the good work.
OcococLast edited by ocococ; 2008-05-25 at 12:06.
-
2008-06-09, 15:45 #9Junior Member
- Join Date
- Jun 2008
- Location
- Copenhagen, Denmark
- Posts
- 4
Apparently, I must be doing something wrong... :-(
I upgraded to SSODS Beta 13 - hibernation still didn't work.
Then I upgraded SC to 7.0.1 - hibernation still didn't work.
Then (not really to try and solve the problem, but included for completeness) I upgraded the DS to FW DSM 2.0-0600. Surprise: Hibernation STILL doesn't work... :-(
So I tried finding out what was happening and enabled the syno_hibernate_debug_tool and got this:
So SSODS reads /etc/protocols every five minutes? Or is it maybe a plugin in SC that does it (I disabled almost all plugins in SC)?Code:Jun 9 23:17:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)] Jun 9 23:22:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)] Jun 9 23:27:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)] Jun 9 23:32:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)] Jun 9 23:37:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)] Jun 9 23:42:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)] Jun 9 23:47:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)] Jun 9 23:52:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)] Jun 9 23:57:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)]
Any ideas? I really would like my disk to spin down... :-)
-
2008-06-09, 16:36 #10
Not SSODS read that file. Perl does. It could be SC or any Perl module or plugin in SC or one of the perl modules. You could grep for "/etc/protocols" in all relevant directories (something like "grep -r /etc/protocols /volume1/SqueezeCenter/* /volume1/SSODS/lib/perl5/*).
Check out flipflip's Squeezebox Server On (some) DiskStation (SSODS) and on (some) TurboStations (SSOTS) and some other devices! Please do NOT file SSODS bugs in (SD's) bugzilla. Use the forums. And only the forums. Thanks.

Reply With Quote

