From owner-freebsd-questions@FreeBSD.ORG Fri Mar 24 14:14:08 2006 Return-Path: X-Original-To: freebsd-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 CB25116A41F for ; Fri, 24 Mar 2006 14:14:08 +0000 (UTC) (envelope-from anton@kaltengpos.com) Received: from mail.radartarakan.com (251.subnet214.astinet.telkom.net.id [203.130.214.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4276743D72 for ; Fri, 24 Mar 2006 14:14:05 +0000 (GMT) (envelope-from anton@kaltengpos.com) Received: from WorldClient by radartarakan.com (MDaemon.PRO.v7.2.0.R) with ESMTP id md50000021063.msg for ; Fri, 24 Mar 2006 22:20:56 +0800 Received: from [203.130.214.252] via WorldClient with HTTP; Fri, 24 Mar 2006 22:20:55 +0800 Date: Fri, 24 Mar 2006 22:20:55 +0800 From: "Antony M Rasat" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Message-ID: X-Mailer: WorldClient 7.2.0 X-Authenticated-Sender: anton@kaltengpos.com X-Spam-Processed: radartarakan.com, Fri, 24 Mar 2006 22:20:56 +0800 (not processed: message from valid local sender) X-MDRemoteIP: 203.130.214.251 X-Return-Path: anton@kaltengpos.com X-MDaemon-Deliver-To: freebsd-questions@freebsd.org X-MDAV-Processed: radartarakan.com, Fri, 24 Mar 2006 22:20:58 +0800 Subject: Re: How to start a script running 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: Fri, 24 Mar 2006 14:14:08 -0000 > I know I can do something like:   su - user -c "script_to_run" > But I don't even know what's the best place to include that. Look inside file /etc/rc.conf line 54. You can create file /etc/rc.conf.local and insert your code there. Remember to add appropriate shell interpreter and apply permission to this newly created file. Regards, Anthony M. Rasat PT. Kalteng Pos Press Palangkaraya - Indonesia.-