« Back to all recent discussions
Nas326 Clean CLI Shutdown
I have NAS326 Firmware V5.21 (AAZF.3). On this I run a small job from a USB stick that monitors an IP address range and, if no boxes are present for 30 minutes, tries to close the server down.
This worked fine on my NAS325v2 using the "poweroff" command. On the NAS326 the execution of the poweroff command leaves the unit idle/inaccessible with all LEDs lit. On restart it does a full disc resync of a 6tb raid! So the box isn't closing cleanly.
Does anybody know which command(s) to use to close the box cleanly.
I've found the halt command, halt_wrapper script (calls halt) and the /etc/init.d rc.shutdown script (but does this do a shutdown or just the fore work).
Intriguingly, I note from the WEB Interface scripts that there is reference to a shutdown command "/ck6fup6/system.main/shutdown" that is part of the zysh command set. BUT /bin/zysh is a link to /sbin/zyshclient which does not appear to exist? I did do a su && find . -name zyshclient but it found nowt :-(
Any suggestions would be welcome. Problem for me is that a 6tb resync = 12hours! So "playing" can be a tad tiresome.