Blackbeard's Ghost (1968)

An unassuming track coach accidentally invokes the spirit of a notorious pirate long believed dead, and who must now team up to lay the pirate to rest, and save a local hotel from a mobster.