From owner-freebsd-questions@FreeBSD.ORG Tue Jan 8 20:55:48 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 384A616A417 for ; Tue, 8 Jan 2008 20:55:48 +0000 (UTC) (envelope-from philip@ridecharge.com) Received: from exhub015-2.exch015.msoutlookonline.net (exhub015-2.exch015.msoutlookonline.net [207.5.72.94]) by mx1.freebsd.org (Postfix) with ESMTP id 2E22913C469 for ; Tue, 8 Jan 2008 20:55:48 +0000 (UTC) (envelope-from philip@ridecharge.com) Received: from philip.hq.rws (74.93.213.161) by smtpx15.msoutlookonline.net (207.5.72.103) with Microsoft SMTP Server (TLS) id 8.0.744.0; Tue, 8 Jan 2008 12:55:47 -0800 Message-ID: <4783E352.3080206@ridecharge.com> Date: Tue, 8 Jan 2008 15:55:46 -0500 From: "Philip M. Gollucci" Organization: Ridecharge User-Agent: Thunderbird 2.0.0.6 (X11/20070919) MIME-Version: 1.0 To: ivan dimitrov References: <18977.72671.qm@web56812.mail.re3.yahoo.com> In-Reply-To: <18977.72671.qm@web56812.mail.re3.yahoo.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: how to start one daemon twice from the rc.conf? 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: Tue, 08 Jan 2008 20:55:48 -0000 ivan dimitrov wrote: > hello list, > > How to start two sshd with different configs from the rc.conf? > > Do i have to write a secondary /etc/rc.d/sshd, > for eg. /etc/rc.d/sshd2 and put sshd2_enable="yes" in the rc.conf > or there is another way to do this? Or you could write a script /usr/local/etc/sshd-mine thats starts both, or add /usr/local/etc/sshd2 that just starts the second one. -f configuration_file Specifies the name of the configuration file. The default is /etc/ssh/sshd_config. sshd refuses to start if there is no con- figuration file. Its generally good to not muck with things in /etc/rc.d unless you really have too, -- ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.