DobyTang / LazyLibrarian

This project isn't finished yet. Goal is to create a SickBeard, CouchPotato, Headphones-like application for ebooks. Headphones is used as a base, so there are still a lot of references to it.
728 stars 72 forks source link

freebsd.initd: Add more rc.conf control and checks #1534

Closed jrudess closed 6 years ago

jrudess commented 6 years ago

I've been running with these modifications for quite a while now on my Freenas server (freebsd 11 jails).

philborman commented 6 years ago

Thanks for the patch, I have included it. Just for my own interest, why would not having wget stop you shutting lazylibrarian down?

jrudess commented 6 years ago

wget is used to send the shutdown request to the server. Sending sigint to the pid may be just as clean of a shutdown, but I didn't experiment with that. If I remember right the old headphones freebsd.init files also used this method.

${WGET} -O - -q --user=${LLUSR} --password=${LLPWD} "http://${HOST}:${PORT}/shutdown/" >/dev/null