Duracell  Freshman Member

Comments

  • MilzelfTried your code and it worked super of course. So my problem is removed (and that of the box I set up for a friend!)But I am still miffed. My code SHOULD have been fine and the only real change in circumstance is that I had a USB dongle inserted. I did catch a glimpse that the NAS326 does have sticky usb issues (if…
  • MijzelfOK, tested your code and you wont be surprised that on the 326 it worked super. Still miffed as my code should have worked so the 326 has a sticky usb dongle! I'll keep digging :-)
  • MijzelfWow, thanks :-) Appreciate that and will have a look at your code. This may well save me a lot of time :-) WinNT3.5.1? I haven't got NT but do have most Win images in VM's (VirtualBox) along with several other interesting OS's (CPM anyone!). Having started on punched cards I still find the command line easier than a…
  • MijzelfAh well in that case you wouldn't like to write a Sleep.On.Idle.Daemon per chance :-). I did but the thing don't work :-) Story of my life! The problem I couldn't quickly over come (NAS325v2) was how to detect a lack of WOL Magic Packets. Too low down in the network stack? That's why my code just pings an IP range…
  • The plot thickens! Now I have a friend who has a NAS326 with 2* 1tb Seagate IronWoilf Nas drives. I put the same shutdown code as mine on the same model usb stick and YUP it failed to close down cleanly! So either a) the Seagate IronWolf drives are a problem as a range, b) that model of USB stick wont umount (my alternate…
  • MijzelfThanks again. Thought about the serial interface but I'd have to set up a console. I'll have a look at your code, ta ... and I hadn't thought of telneting from the box itself :-) Worth a play. And while I was contemplating my fate I knocked up a "Network Monitoring Box" on an old RaspberryPI 1B that was sitting idle…
  • Well I'm stumped. Tried another USB stick and the same result. The box was left with all LEDs lit but no way (telnet, http, etc) to access it. Obviously the services had closed but the box did not fully shutdown.So it was closed by holding the power button until it died. Then, of course, on reboot the discs started to…
  • MijzelfChecked the smart info and no reported problems. Pretty standard with both stated as good.I didn't see the sdb1 for the usb (getting old!). So I did a little test and put the stick in after boot ... it came up as sdc1? There is only one stick in at a time? I tried all three usb slots but always sdc1. Odd.Give me a…
  • MijzelfI'll be candid and post the script that the usb_key_func.sh starts:#!/bin/sh # # This is the USER executeable script for the universal_usb_key_func # autorun script facility on Zyxel NAS server. # It is called by usb_key_func.sh and starts user Sleep On Idle Daemon. # # SCRIPTVERSION="20190225" #…
  • MijzelfThanks again. Sensible comments again.Yup all lights on and steady but unable to access the box as the services are closed (ssh, HTTP, telnet!) Not even ping responds which means I have to use the power button. So yup, it's not a clean close.I did some tests and if I initiate a halt via a telnet script from my pc…
  • OK so I changed my "daemon" script to call "halt &" instead of "poweroff" and then exited the script with "exit 0". Further I added a "sleep 60" to rc.shutdown.The result was that after the 15 mins inactivity being checked for the script executed "halt &" "exit 0" and left itself idle with all LEDs steady. On reboot it…
  • Mijzelf: Thanks for your comments; most interesting.Yup the web interface doesn't appear to cause a resync (or hasn't yet). So I think that the poweroff is certainly not closing cleanly - and it's something to do with my code or the usb stick inserted What I've got installed is a usb_key_func.sh script that starts a pseudo…
Avatar