Updated trex service script.