Rewriter depends on the check of qubes-services and must be run after /usr/lib/qubes/init/misc-post.sh.