<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
My question is, what is the preferred way of configuring such a daemon, that only takes command line arguments for its configuration?<br>
<br>
The two possibilities I'm thinking of are:<br>
1. put the configuration variables directly into the /etc/rc.d/rc.daemon script<br>
2. put the configuration variables into /etc/daemon.conf file and later on source the file from within /etc/rc.d/rc.daemon<br>
<br>
Which way to go?</blockquote><div>When I'm writing a daemon file and there is no default location that the program puts the configuration file then I put it into /etc/default and source it there from the rc file.</div><div><br></div><div>--Larry </div></div></div></div>