OK, a couple of thoughts:
You might try modifying your watchdog script so that it just kills the
perl instance. That will let squeezeboxserver_safe do it's intended
job..which is to automatically restart the perl script if it dies.
Adapting your script, it might look like:
Code:
--------------------
wget --timeout=5 --tries=1 --spider http://192.168.4.80:9000 1>/tmp/zzsbmon
2>/tmp/zzsbmon
sbstat=$(grep "200 OK" /tmp/zzsbmon | wc -w)
if [ $sbstat -eq 0 ]
then
zz=$(tail -n 50 /var/log/squeezeboxserver/server.log)
echo "Squeezebox (LtMediaServer) needed restarting, log was : \n \n $zz" |
mailx -v -s "SB restarted $(date)" [email protected]
pkill -fn 'perl.*/squeeze|perl.*/slim|perl.*/logitech'
fi
--------------------
Also, in terms of the services you've got configured to always run, you
might have a look at this:
http://computerhowto.us/optimize-ubuntu-disable-unnecessary-services.html
This is what I've got running on my headless, sans-gui Ubuntu 12.04
x86_64 server:
Code:
--------------------
# chkconfig --list | sort | grep "[2-5]:on"
apcupsd 0:off 1:on 2:on 3:on 4:on 5:on 6:off
cpufrequtils 0:off 1:off 2:on 3:on 4:on 5:on 6:off
grub-common 0:off 1:off 2:on 3:on 4:on 5:on 6:off
hddtemp 0:off 1:off 2:on 3:on 4:on 5:on 6:off
lighttpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
logitechmediaserver 0:off 1:off 2:on 3:on 4:on 5:on 6:off
loadcpufreq 0:off 1:off 2:on 3:on 4:on 5:on 6:off
minidlna 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ntp 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ondemand 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rc.local 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rsync 0:off 1:off 2:on 3:on 4:on 5:on 6:off
smartmontools 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sudo 0:off 1:off 2:on 3:on 4:on 5:on 6:off
winbind 0:off 1:off 2:on 3:on 4:on 5:on 6:off
--------------------
Finally, do you have a spare hard disk kicking around? Could you
configure this box with a new OS drive with a fresh, clean install of
Ubuntu 12.04 server? I've made and collected enough configuration
helper scripts over the past couple of years that a chore like this will
only take me about 90 minutes from initial boot off the install USB key
to a functioning SBS/LMS server. I realize that this may be a heaver
time investment for you and so I don't ask this lightly. But how much
longer do you want to keep pulling your hair out? From everything you
describe, it really sounds as though you've already gone through most
everything that I could think of. I mean, short of a reinstall, have
you fscked all the file systems and checked the smart data for all the
drives?
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=95579
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix