February 27, 201214 yr 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 }
February 28, 201214 yr you could add a sleep 30 command before calling the SB restart or only continue after a successful ping of www.google.com ?
Archived
This topic is now archived and is closed to further replies.