creating a startup script for a foreign application
Polytropon
freebsd at edvax.de
Sat Aug 22 08:32:02 UTC 2020
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, ...
More information about the freebsd-questions
mailing list