Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Nov 2018 21:32:09 +0100
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        Carmel NY <carmel_ny@outlook.com>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Append to "command" in rec script
Message-ID:  <20181108213209.159bf8f8@e5500.localdomain>
In-Reply-To: <SN1PR20MB21090B23D17CCEBEC43C428380C50@SN1PR20MB2109.namprd20.prod.outlook.com>
References:  <SN1PR20MB2109DD8D5387A977F1F550B480C50@SN1PR20MB2109.namprd20.prod.outlook.com> <20181108193853.ee1404e2.freebsd@edvax.de> <SN1PR20MB21090B23D17CCEBEC43C428380C50@SN1PR20MB2109.namprd20.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>>On Thu, 8 Nov 2018 18:13:24 +0000, Carmel NY wrote:  
>>> I am attempting to create an "rc" script to start a program I am working
>>> on. I want, if possible, for the user to enter something in the rc.conf
>>> file to be added to the "command" string when the program is started.
>>> 
>>> EXAMPLE:
>>> 
>>> In the rc script, this is present
>>> 
>>> command=/usr/local/bin/MyProg
>>> 
>>> Now, suppose the user wanted to activate logging. They could modify the rc
>>> script and append an "-l" to the command string. However, I would rather
>>> they entered options in the rc.conf file    

Don't you look for ${name}_flags (see rc.subr(8)).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20181108213209.159bf8f8>