Date: Tue, 8 Jan 2008 15:55:46 -0500 From: "Philip M. Gollucci" <philip@ridecharge.com> To: ivan dimitrov <dimitrovi58@yahoo.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: how to start one daemon twice from the rc.conf? Message-ID: <4783E352.3080206@ridecharge.com> In-Reply-To: <18977.72671.qm@web56812.mail.re3.yahoo.com> References: <18977.72671.qm@web56812.mail.re3.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4783E352.3080206>