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.

[solved] need Post sleep activities help

Featured Replies

I need to restart Sickbeard after my server resumes from standby. Currently SB tries to access the internet before the NIC  becomes available again. This is causing SB to throw errors and it has to be restarted to get fixed. Below is the part of my s3.sh file related to post sleep activities. I do not believe it is working. Can anyone shed some light on this? How do I write what is happening to the system log so I can check if the action is being done or not?

 

post_sleep_activity() {
#cp /var/log/pm-suspend.log /boot/suspendlogs/post_pm-suspend.log_`date +"%d_%m__%H_%M_%S"`.log
# Force NIC to use gigabit networking
if [ "$forceGb" = $yes ]
then 
	ethtool -s eth0 speed 1000
	#ethtool -s eth0 autoneg on
fi
logger -i -tsleepscript -plocal0.info "Waking up from SLEEP"
# Force a DHCP renewal (shouldn't be used for static-ip boxes)
if [ "$doDhcpRenewal" = $yes ]
then 
	/sbin/dhcpcd -n
fi

echo DONE
echo $(date) unRAID Server Online

#Restart sickbeard
echo Restarting SickBeard
wget -q --delete-after http://192.168.0.100:8181/api/1234/?cmd=sb.restart
sleep 1

}

you could add a sleep 30 command before calling the SB restart

 

or

 

only continue after a successful ping of www.google.com ?

  • Author

Putting a sleep before the command did the trick. Thanks!

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.