NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
TeknoJnky
Mar 06, 2014Hero
subsonic 4.9
any chance of an updated package for subsonic 4.9/raidiator 4.x?
JeremyB132
Aug 01, 2014Aspirant
Hey super-poussin
On another thread they mentioned adding this to keep automatically restart subsonic:
my $subsonic = `ps aux | grep onic | grep jar | grep -v grep | sed -r -e 's/ +/ /g' | cut -f 11- -d ' '`; # PKAS
chomp($subsonic); # PKAS
foreach my $cmd (keys %restart) {
system("$cmd");
}
my $isSubsonicStillThere = `ps aux | grep onic | grep jar | grep -v grep`; # PKAS
if ($subsonic && $isSubsonicStillThere !~ /jar/) { # PKAS
print "Restarting subsonic\n"; # PKAS
system("cd /c/webroot/subsonic \&\& rm -f nohup.out \&\& nohup $subsonic 2>\&1 >/dev/null \&"); # PKAS
} # PKAS
unlink("/ramfs/.logtruncate.lock");
It seems that in 4.9 this isn't work as subsonic has been crashing at some point or getting closed. Would this script still work to restart subsonic after the log.truncate runs? Appreciate the help and thanks for the great addon!
On another thread they mentioned adding this to keep automatically restart subsonic:
my $subsonic = `ps aux | grep onic | grep jar | grep -v grep | sed -r -e 's/ +/ /g' | cut -f 11- -d ' '`; # PKAS
chomp($subsonic); # PKAS
foreach my $cmd (keys %restart) {
system("$cmd");
}
my $isSubsonicStillThere = `ps aux | grep onic | grep jar | grep -v grep`; # PKAS
if ($subsonic && $isSubsonicStillThere !~ /jar/) { # PKAS
print "Restarting subsonic\n"; # PKAS
system("cd /c/webroot/subsonic \&\& rm -f nohup.out \&\& nohup $subsonic 2>\&1 >/dev/null \&"); # PKAS
} # PKAS
unlink("/ramfs/.logtruncate.lock");
It seems that in 4.9 this isn't work as subsonic has been crashing at some point or getting closed. Would this script still work to restart subsonic after the log.truncate runs? Appreciate the help and thanks for the great addon!
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!