To prevent wrong restores and also to prevent user failure there should be a check if the target database is shutted down.
As far as I can see it will never work if the DB would be running.
Until we improve the remote recovery facility (with a remote agent, for example), this kind of checks is difficult and cumbersome. With local recovery it is pretty straightforward.
Theoretically, the recovery command should detect the PID file location and check if the process is up.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
to be added to the TODO list
Until we improve the remote recovery facility (with a remote agent, for example), this kind of checks is difficult and cumbersome. With local recovery it is pretty straightforward.
Theoretically, the recovery command should detect the PID file location and check if the process is up.