add restart command.
get cpu-core nums by getconf.