Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
My NAS connected to the same power strip as my PC .
When I shut down the PC , upon PC off , I will just off the wall AC socket ... and hence will just turn off the NAS>...
Is that ok ?
Or I must also press the off button of the NAS ?
Offline
I notice you mention shutting down the PC and then turning it off at the wall socket - for exactly the same reason as you're shutting down the PC, you need to shut the DNS-323 down using either the web-admin page or the front panel button - improper shutdowns may cause loss of data.
Offline
While Fordem is completely right (i.e. something could be writing to the NAS and killing the power will cause corruption) a few thoughts come to mind.
1.
You could get round it by having a watch script running on the DNS that looks for a file and when found runs the shotdown command on the NAS to shot itself down. Downside is you would have to put a copy of the 'trigger' file in the watched directory before shutting down.
2.
As with 1. but you could shutdown your windows machine (works with XP not sure abount any others) vi a batch file which would copy over the trigger file then run the shutdown command on your Windows box so to you it looks like you just click the icon and both shutdown.
3.
You could have a script that pings your workstation and if not found for, say 10 minutes then runs the NAS shutdown.
4.
You could have an icon that telnets to the NAS and runs a script which shuts down the NAS by running the shutdown command.
Whilst the DNS-323 doesn't seem to have the shutdown command it does have the reboot and poweroff commands in /sbin although I have not tried them.
RB
Offline
Search the forum - if I recall correctly the standard firmware runs a script that watches for a trigger file - I think that is how the front panel shutdown is done.
Offline
THanks fordem.
Might be interesting to take a look. Remote shutdown without the web interface login may be quite useful.
RB
Offline
Whilst you're about it - do a search on security (or perhaps insecurity) - I believe it's possible to use many of the web admin pages without going through the login.
Offline
I found this topic ...... still not sure abt the windows software shutdown ...
Anyone can enlighten ?
http://dns323.kood.org/forum/t1659-Powe … aybe..html
Offline
trichard wrote:
Anyone can enlighten ?
take a look at http://dns323.kood.org/forum/t1520-Does … nd%3F.html
and this http://dns323.kood.org/forum/t1524-Auto … -sort.html
Last edited by mig (2008-08-03 10:23:42)
Offline
trichard wrote:
I found this topic ...... still not sure abt the windows software shutdown ...
Anyone can enlighten ?
http://dns323.kood.org/forum/t1659-Powe … aybe..html
Windows XP also has a shutdown command that can be run from a batch file.
If you remember there was a virus going around which would pop up the 'system is shutting down in 10 seconds' message then shutdown your desktop. The virus was just invoking the shutdown command. The temp fix was to run a shutdown -a which aborted it from the command prompt.
C:\>shutdown -h
Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]
No args Display this message (same as -?)
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without warning
-d [u][p]:xx:yy The reason code for the shutdown
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)
C:\>
Put something like;
copy shutdown-dns.txt \\DNS-323\Volume_1\systmp\shutdown
shutdown -s -t 20
In dns-shutdown.bat saved on your c:
create a new text doc called shutdown-dns.txt and save int he same location as the .bat file
Create a new desktop shortcut to point to the .bat file for shutting down both the PC and DNS.
create a script in the ffp/start directory with something like the following in it
ln -s /tmp /mnt/HD_a2/systmp
chmod 777 [script name]
You should be done.
Clicking the shutdown icon on your desktop should prompy the DNS to shutdown within 5 seconds and the PC to shutdown in 20 seconds,
This code has not been tested so please try at your own risk but the theory is sound.
I will look aty making a shutdown scrip tfor my trigger_check suite of scripts to allow the starting / stoping of scripts / progs by placing trigger files in a directory on the NAS.
RB
Offline
trichard wrote:
My NAS connected to the same power strip as my PC .
When I shut down the PC , upon PC off , I will just off the wall AC socket ... and hence will just turn off the NAS>...
Is that ok ?
Or I must also press the off button of the NAS ?
You should press/hold the power button on the DNS-323 and wait for it to shutdown before switching off the AC socket.
Offline