Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2005 17:50:55 +0200 (CEST)
From:      Erik Norgaard <norgaard@math.ku.dk>
To:        Foo JH <jhfoo@nexlabs.com>
Cc:        questions@freebsd.org
Subject:   Re: why my daemon did not start
Message-ID:  <Pine.LNX.4.64.0510181749360.421@shannon.math.ku.dk>
In-Reply-To: <001c01c5d3f9$69b0f790$640a0a0a@gypsy>
References:  <001c01c5d3f9$69b0f790$640a0a0a@gypsy>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 18 Oct 2005, Foo JH wrote:

> Hi all, I'm trying to write a simple RC script to run my little Perl script as a daemon. The script is as follows:
>
> #!/bin/sh
>
> portal_enable=${portal_enable-"NO"}
> portal_flags=${portal_flags-""}

you should correct these: to set the default value use ':-'

> . /etc/rc.subr

Using this you need to enable the script in /etc/rc.conf

Erik



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