Fix partially bug #3394 (https://cfengine.com/dev/issues/3394) ; use start-stop-daemon with its pidfile argument.