Here are some changes do initscript. What do you think?

Modified initscript restart function to try to stop
more than once mod_gearman_worker' daemon. An exit
code != of 0 is returned in case of fail.