From owner-freebsd-questions@FreeBSD.ORG Tue Oct 18 15:50:59 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F70B16A421 for ; Tue, 18 Oct 2005 15:50:59 +0000 (GMT) (envelope-from norgaard@math.ku.dk) Received: from imf.math.ku.dk (fw.math.ku.dk [130.225.103.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2229D43D45 for ; Tue, 18 Oct 2005 15:50:59 +0000 (GMT) (envelope-from norgaard@math.ku.dk) Received: from imf.math.ku.dk (localhost [127.0.0.1]) by imf.math.ku.dk (Postfix) with ESMTP id E735F23C03; Tue, 18 Oct 2005 17:50:55 +0200 (CEST) Received: from shannon.math.ku.dk (shannon.math.ku.dk [130.225.103.12]) by imf.math.ku.dk (Postfix) with ESMTP; Tue, 18 Oct 2005 17:50:55 +0200 (CEST) Date: Tue, 18 Oct 2005 17:50:55 +0200 (CEST) From: Erik Norgaard To: Foo JH In-Reply-To: <001c01c5d3f9$69b0f790$640a0a0a@gypsy> Message-ID: References: <001c01c5d3f9$69b0f790$640a0a0a@gypsy> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: questions@freebsd.org Subject: Re: why my daemon did not start X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 15:50:59 -0000 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