stubby icon indicating copy to clipboard operation
stubby copied to clipboard

Create an rc.d script to run stubby as a daemon

Open TELunus opened this issue 6 years ago • 6 comments

The documentation says to run stubby as sudo stubby, however this is an inconvenient way to run a system process that should always be left running, and that should come up with the system. I see that support is being or has been added to run it using systemd. As a user of FreeBSD I would also like to see a script for use with the rc system.

TELunus avatar Apr 06 '18 00:04 TELunus

We have basic support for using systemd - see the systemd folder https://github.com/getdnsapi/stubby/tree/develop/systemd but we also have a couple of open issues on this #62 and #38 we need to look at. I've updated the README to include the reference above.

saradickinson avatar Apr 09 '18 10:04 saradickinson

I'm glad you did that, it's helpful for systemd users. However my real concern is that us FreeBSD users still don't have a good way of running it as a system daemon. Now taking a closer look I'm realising you don't list support for FreeBSD. FreeBSD on the other hand does provide a working stubby install through its ports collection (it's a configuration option under the getdns port). So I think it would be useful to those of us who have installed stubby that way to have a script for the rc system available. Otherwise we'll just each wind up writing our own, and that would be a lot of wasted effort.

TELunus avatar Apr 09 '18 20:04 TELunus

I do agree - I was just highlighting our current lack of support in this general area :-) @wtoorop do you have anything we could use here?

saradickinson avatar Apr 10 '18 10:04 saradickinson

Yes! I'll discuss with Jaap. I believe he also does the rc.d scripts for nsd, unbound and opendnssec.

wtoorop avatar Apr 10 '18 10:04 wtoorop

@wtoorop just checking... any progress on this?

saradickinson avatar May 10 '18 13:05 saradickinson

No time sorry... this is in for the 0.2.4

wtoorop avatar May 11 '18 09:05 wtoorop