the Ghost and Mrs. Muir

The Ghost & Mrs. Muir is an American situation comedy based on the 1947 film of the same name, which was based on the 1945 novel by R. A. Dick. Itpremiered in September 1968 on NBC.  After NBC canceled the series, it aired on ABC for one season before being canceled a final time.

The series stars Hope Lange as Carolyn Muir, a young widow who rents Gull Cottage, near the fictional fishing village of Schooner Bay, Maine along with her two children, housekeeper and their dog.  The cottage is haunted by the ghost of its former owner: Daniel Gregg, a 19th-century sea captain, played by Edward Mulhare.
While the earlier film was set in early 1900s England, the sitcom employed a contemporary American setting.