Were. If only he were running. Was would be used with an if only when referring to a specific point in time.
Were. If only he were running. Was would be used with an if only when referring to a specific point in time.