April 26, 201115 yr Just a quicky, will a parity check over-ride the powerdown command(set for 1am) in my go file? i want to start a parity check and go to bed, but not have the server shut down Cheers
April 26, 201115 yr Author To answer my question, a parity check will not over-ride the powerdown script, the server shutdown at 1am, new parity check started, goodnight
April 26, 201115 yr There is no code to prevent the power down if parity check is active. if you think it's worth while I'm sure we can put something inside so that a command line option prevents the powerdown script from doing the actual power down. This way if it s called from cron on schedule, it will not shut the machine off until the next cycle when the parity check has completed.
April 26, 201115 yr You should look at running a script which checks for disk activity before powering down the server. Then, it would only power down at 1am if the disks are all spun-down or if the disks have been idle for a certain length of time. There was a sleep script that could be used for some ideas. Since we have no idea how you are shutting down at 1am (cron? ) it's hard to help.
April 26, 201115 yr Author You should look at running a script which checks for disk activity before powering down the server. Then, it would only power down at 1am if the disks are all spun-down or if the disks have been idle for a certain length of time. There was a sleep script that could be used for some ideas. Since we have no idea how you are shutting down at 1am (cron? ) it's hard to help. Thanks for the replies, I'm currently using the at command, in my 'go' script, which is as follows #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & CTRLALTDEL=NO LOGSAVE=30 installpkg /boot/packages/powerdown-1.02-noarch-unRAID.tgz sysctl -w kernel.poweroff_cmd="/sbin/powerdown" echo "/sbin/powerdown" | at 01:00 echo "/boot/unmenu/uu" | at now + 1 minute # PS3 Media Server cd /boot/custom/ps3ms installpkg jre-6u11-i586-1.tgz cd /boot/custom/ps3ms/mencoder installpkg *.tgz cd /boot/custom/ps3ms echo "./PMS.sh" | at now + 1 minute Running a script checking for activity would be perfect, I've searched how to call from cron, but it's over my head, any assistance appreciated,
Archived
This topic is now archived and is closed to further replies.