WIP: able to restart daemon but incorrectly.