the service script like below does not work in my cent os 6.4 box.
/the_path_toforever/forever --plain list | sed 's/data:(\s[[0-9]]\s(chatserver)\s.)/\2-status:\1/;tx;d;:x'
should replace data: to data.*,like
/the_path_toforever/forever --plain list | sed 's/data.*(\s[[0-9]]\s(chatserver)\s.)/\2-status:\1/;tx;d;:x'
the service script like below does not work in my cent os 6.4 box. /the_path_toforever/forever --plain list | sed 's/data:(\s[[0-9]]\s(chatserver)\s.)/\2-status:\1/;tx;d;:x' should replace data: to data.*,like /the_path_toforever/forever --plain list | sed 's/data.*(\s[[0-9]]\s(chatserver)\s.)/\2-status:\1/;tx;d;:x'