[Slackbuilds-users] Preferred way of configuring daemon that takes command line arguments only as its configuration step

Larry Hajali larryhaja at gmail.com
Sat Aug 6 17:02:16 UTC 2016


>
>
> My question is, what is the preferred way of configuring such a daemon,
> that only takes command line arguments for its configuration?
>
> The two possibilities I'm thinking of are:
> 1. put the configuration variables directly into the /etc/rc.d/rc.daemon
> script
> 2. put the configuration variables into /etc/daemon.conf file and later on
> source the file from within /etc/rc.d/rc.daemon
>
> Which way to go?

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.

--Larry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20160806/f9271cd7/attachment.html>


More information about the SlackBuilds-users mailing list