Date: Sat, 22 Aug 2020 12:57:47 +0300 From: Odhiambo Washington <odhiambo@gmail.com> To: Polytropon <freebsd@edvax.de> Cc: questions <questions@freebsd.org> Subject: Re: creating a startup script for a foreign application Message-ID: <CAAdA2WNuWoyFb71FMBUR1CKMovgr82KzKrODx=uW1AqH2wtmTA@mail.gmail.com> In-Reply-To: <20200822103158.f6cdadc7.freebsd@edvax.de> References: <CAAdA2WPwwzaP4F2ZTXTAvFAAgXDYk0OiM6fsERbGjMK=s7v0KA@mail.gmail.com> <20200822103158.f6cdadc7.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 22 Aug 2020 at 11:31, Polytropon <freebsd@edvax.de> wrote: > Allow me an addition: > > You can find information about how to convert or construct > a rc.d script in The Porter's Handbook: > > 6.26. Starting and Stopping Services (rc Scripts) > > > https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/rc-scripts.html > > But as you already have a script that works, it would > probably be easier to just create an "interface" to that > script. There is a section in the article "Practical rc.d > scripting in BSD" which might be helpful (and the article > itself is worth reading): > > > https://www.freebsd.org/doc/en_US.ISO8859-1/articles/rc-scripting/index.html > > Especially this section: > > 7. Connecting a script to the rc.d framework > > > https://www.freebsd.org/doc/en_US.ISO8859-1/articles/rc-scripting/rcng-hookup.html > > I'm quite sure this is the easiest way to integrate the existing and > working script with the requirements of rc.d. > Thank you. Let me take a look at this. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WNuWoyFb71FMBUR1CKMovgr82KzKrODx=uW1AqH2wtmTA>