From owner-freebsd-questions Wed Nov 6 9: 4: 6 2002 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 57C7837B401 for ; Wed, 6 Nov 2002 09:04:05 -0800 (PST) Received: from voo.doo.net (voo.doo.net [81.17.45.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECC9D43E77 for ; Wed, 6 Nov 2002 09:04:03 -0800 (PST) (envelope-from marc@schneiders.org) Received: from localhost (localhost [127.0.0.1]) by voo.doo.net (8.12.5/8.12.3) with ESMTP id gA6H3n0M041762; Wed, 6 Nov 2002 18:03:50 +0100 (CET) (envelope-from marc@schneiders.org) Date: Wed, 6 Nov 2002 18:03:49 +0100 (CET) From: Marc Schneiders X-X-Sender: To: Brian Henning Cc: Subject: Re: icecast In-Reply-To: Message-ID: <20021106175840.O41694-100000@voo.doo.net> X-Preferred-email-to: marc@schneiders.org X-Other-email-to: marc@venster.nl X-Organization: Venster (Zeist - NL) X-URL: http://www.bijt.net/ X-SOA: A.ROOT-SERVERS.ORSC. X-OS: FreeBSD: The Power to Serve MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 6 Nov 2002, at 10:53 [=GMT-0600], Brian Henning wrote: > hello- > i have icecast installed on my bsd box and it runs great. can someone tell > me how i can automatically start this program on boot? Put a tiny shell script in /usr/local/etc/rc.d e.g. #!/bin/sh /usr/local/bin/icecast & (Assuming that is where it is and how it's called.) Give it a name that ends in .sh, say ice.sh. Don't forget to set the file executable ("chmod 700 ice.sh"). This works for all programs. At boot the system checks for files ending in .sh in the the dir mentioned and runs them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message