how to start one daemon twice from the rc.conf?

Philip M. Gollucci philip at ridecharge.com
Tue Jan 8 12:55:48 PST 2008


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 at 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.



More information about the freebsd-questions mailing list