restar automatic?

As I can configure the server for automatic restart? global.restart not work