Use CAF::Service for restarting daemons.

... removing quite some code. :)