Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Powerdown Script Whilst Parity Check In Progress

Featured Replies

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

 

  • 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

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.

 

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.

  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.