From owner-freebsd-questions Wed Nov 6 9:28: 1 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 76D9537B401 for ; Wed, 6 Nov 2002 09:28:00 -0800 (PST) Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by mx1.FreeBSD.org (Postfix) with SMTP id 2778F43E42 for ; Wed, 6 Nov 2002 09:27:58 -0800 (PST) (envelope-from neuhauser@bellavista.cz) Received: (qmail 13786 invoked from network); 6 Nov 2002 17:27:50 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 6 Nov 2002 17:27:50 -0000 Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id B4DCF2FDAB2; Wed, 6 Nov 2002 18:27:45 +0100 (CET) Date: Wed, 6 Nov 2002 18:27:45 +0100 From: Roman Neuhauser To: Marc Schneiders Cc: Brian Henning , questions@FreeBSD.ORG Subject: Re: icecast Message-ID: <20021106172745.GQ68683@freepuppy.bellavista.cz> Mail-Followup-To: Marc Schneiders , Brian Henning , questions@FreeBSD.ORG References: <20021106175840.O41694-100000@voo.doo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021106175840.O41694-100000@voo.doo.net> User-Agent: Mutt/1.5.1i 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 # marc@schneiders.org / 2002-11-06 18:03:49 +0100: > On Wed, 6 Nov 2002, at 10:53 [=GMT-0600], Brian Henning wrote: > > 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 > > #!/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. they're also run at shutdown. they're called with "start" parameter during boot, and with "stop" during shutdown. you probably don't want to start a second instance of the server when the system is going down. -- If you cc me or take the list(s) out completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message