On Sat, Apr 26, 2014 at 11:47:00PM +0200, Michał Lesiak wrote:
> Hello,
> 
> I'm converting a .rc script made by someone a coupe of years ago for the
> same product I'm currently working on. It's important for this tale as this
> may mean that this actually worked for some previous versions.
> I'm working on 5.2 version.
> 
> 1. I have a custom "rc_register()" sub defined in my .rc script, but I
> cannot make rc subsystem recognize that - trying to run that ends with
> calling rc_usage(). I've checked up (briefly) rc.subr and I cannot see there
> any possibility to have custom rc_${SUB} functions implemented.
> So, is it possible or maybe it was possible some time ago?
> 
> 2. I'm having a very simple problem of getting any STDOUT output from the
> daemon I'm running. Just as well I'm not getting anything with simple "echo
> foo" put into rc_start(), but the more serious issue is when the daemon
> fails to start, prints out a message to STDOUT (it's a Perl script) but rc
> subsystem only says that it has failed with all the output from the daemon
> lost somewhere.
> Is it my fault or is it a design or, as in the previous case, it worked and
> is not working anymore?

man rc.d

"
     -d      Setting this option will print the function names as they are
             called and prevent the rc.subr(8) framework from redirecting
             stdin and stderr to /dev/null.  This is used to allow debugging
             of failed actions.
"

-- 
Antoine

Reply via email to