code: func (p *Process) Restart() (err error) {
  	if p.isAlive() {
  		if _, err = p.StopAndWait(); err != nil {
  			p.log.Warnf("Cannot stop process %s due to error, trying force stop... (err: %v)", p.GetName(), err)
  			if err = p.forceStopProcess(); err != nil {
  				return err
  			}
  		}
  	}
  	p.command, err = p.startProcess()
  	p.log.Debugf("Process %s was restarted (PID: %d)", p.GetName(), p.GetPid())
  	return err
  }
docs: // Restart the process, or start it if it is not running