Help for this page
if ( $_ == "has gone down" ) { run start server command }
if ( $_ eq "has gone down" ) { run start server command } as it's a string comparison, but actually should be if ( /has gone down/ ) { run start server command } as it's a match you're looking for.