fixed restarting on solaris