From owner-freebsd-questions@FreeBSD.ORG Wed Mar 5 18:45:45 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DBFA106566C for ; Wed, 5 Mar 2008 18:45:45 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.185]) by mx1.freebsd.org (Postfix) with ESMTP id DF3388FC1A for ; Wed, 5 Mar 2008 18:45:44 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: by mu-out-0910.google.com with SMTP id w9so1975245mue.6 for ; Wed, 05 Mar 2008 10:45:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=9cMbGNtJ+/ZmqEa2OVqYthzYeipGNjagDGxBaixQL48=; b=B7/u9Wnkh1QsYWtpIA031wUYX32NEzHe3s3Pa4OuXQ9Untjb1z/0Wqs0aliIrX2nKI0Xmi5qLrWdUv2XYb55z+KPlR3zaLAAKd/fIm+NdEA73fdBn4pOh457ID/0gP2KEKkBMBBI4XVuTf13CeldXKLBVbFcQStFATKW0/6z3/o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=t0MerCAw+GGwoYgJismv/dgxtjwF8l4t4FRgrDoZdfun21mOQTjLb+8DN9820m2vBePP4XvgGuHaOMYXtlHWt+R2TLxmkcC0X/5R6YvbJ/o6WD7tH6UIXNfTYjZy6mZY09loXWwEQerTCk3bHxU/omgNpkbQyVkf1pYY0IKZBc8= Received: by 10.82.125.8 with SMTP id x8mr9809718buc.22.1204742743079; Wed, 05 Mar 2008 10:45:43 -0800 (PST) Received: by 10.82.160.10 with HTTP; Wed, 5 Mar 2008 10:45:43 -0800 (PST) Message-ID: <560f92640803051045lffcd5e4k4f2b61237e983497@mail.gmail.com> Date: Wed, 5 Mar 2008 10:45:43 -0800 From: "Nerius Landys" To: "Bill Banks" In-Reply-To: <47CEDD64.4090100@ourweb.net> MIME-Version: 1.0 References: <47CEDD64.4090100@ourweb.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Questions Subject: Re: starting a program at boot time 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: Wed, 05 Mar 2008 18:45:45 -0000 how do i start a program at boot time? > > What is the exact program you want to start at boot time? Is this a standard program that is typically started at boot time or is it some sort of custom program that is non-standard? If it's a standard program such as the ssh daemon or the apache webserver, then read my post, otherwise ignore what I say here and refer to other people's posts. Have a look in the directories /etc/rc.d/ and /usr/local/etc/rc.d/. Do you see a script in these directories that may lauch the program you're interested in at boot time? For example, on my system, I want ssh and apache running on bootup. I see the file /etc/rc.d/sshd and the file /usr/local/etc/rc.d/apache22. These are scripts that lauch the programs. I would start sshd manually for example by > /etc/rc.d/sshd start To enable these on bootup automatically, edit your /etc/rc.conf file. Mine has the following lines: sshd_enable="YES" apache22_enable="YES" As you can see the lines resemble the script names in the rc.d directories. To enable your program at boot time, add a similar line to rc.conf. Hope this helps. -Nerius