Running as a service on *nix

systemd

There is basic support for using stubby with systemd. See the systemd directory. Also see the discussion on this issue.

upstart

We have a contributed upstart script here.

rc

There is an issue open requesting an rc.d script.