improve service script for lbs, add restart option
deal with errors during building the tarball