From owner-freebsd-questions@FreeBSD.ORG Thu Mar 23 20:34:41 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 2DF3C16A400 for ; Thu, 23 Mar 2006 20:34:41 +0000 (UTC) (envelope-from wcox@xxiii.com) Received: from cartman.xxiii.com (cartman.xxiii.com [208.62.177.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F8F043D4C for ; Thu, 23 Mar 2006 20:34:36 +0000 (GMT) (envelope-from wcox@xxiii.com) Received: from PC02.xxiii.com (lan23.xxiii.com [208.62.177.50]) by cartman.xxiii.com (8.13.4/8.13.4) with ESMTP id k2NKYZE4011468 for ; Thu, 23 Mar 2006 15:34:35 -0500 (EST) (envelope-from wcox@xxiii.com) Message-Id: <6.2.5.6.2.20060323151634.033f1248@xxiii.com> X-Mailer: QUALCOMM Windows Eudora Version 6.2.5.6 Date: Thu, 23 Mar 2006 15:34:34 -0500 To: freebsd-questions@freebsd.org From: wc_fbsd@xxiii.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: 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: Thu, 23 Mar 2006 20:34:41 -0000 Hi, I have a script I would like to launch at boot time, as a non-root user, to remain running in the background. What is the best way to accomplish this? I looked through the rc* stuff, and it looks like overkill for what I need, plus my scripting isn't that strong either. 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. Any suggestions, or examples? -Thanks, Wayne