Fixed the daemonising issue. The service now daemonises correctly
and is testable as doing such.