Date: Sat, 22 Aug 2020 10:31:58 +0200 From: Polytropon <freebsd@edvax.de> To: Odhiambo Washington <odhiambo@gmail.com> Cc: questions <questions@freebsd.org> Subject: Re: creating a startup script for a foreign application Message-ID: <20200822103158.f6cdadc7.freebsd@edvax.de> In-Reply-To: <CAAdA2WPwwzaP4F2ZTXTAvFAAgXDYk0OiM6fsERbGjMK=s7v0KA@mail.gmail.com> References: <CAAdA2WPwwzaP4F2ZTXTAvFAAgXDYk0OiM6fsERbGjMK=s7v0KA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200822103158.f6cdadc7.freebsd>