Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2018 15:21:48 +0100
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Can't get pidfile to work in rc script
Message-ID:  <20180921152148.562c2771@gumby.homeunix.com>
In-Reply-To: <CAFPNf59m3BGLiNxkWK%2Bo5TRa=CNmh4vTmv7PZBmMbhYaBdj5Vw@mail.gmail.com>
References:  <CAFPNf59m3BGLiNxkWK%2Bo5TRa=CNmh4vTmv7PZBmMbhYaBdj5Vw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 20 Sep 2018 20:57:09 -0700
Lee Brown wrote:

> I'm trying to get 2 separate sshd's running.  I've created
> /etc/rc.d/sshd_alternate but it always uses /var/run/sshd.pid and not
> /var/run/sshd_alternate.pid.  I tried
> 
> sshd_alternate_pidfile="${pidfile}"

Usually the pid file specified in an rc file is telling the script 
what the daemon is using. sshd  doesn't seem to have a direct way of
setting the pid file path, I think you would have to create an alternate
sshd_config and pass that as an argument to sshd.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180921152148.562c2771>