Can't get pidfile to work in rc script
RW
rwmaillists at googlemail.com
Fri Sep 21 14:21:52 UTC 2018
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.
More information about the freebsd-hackers
mailing list