From owner-freebsd-ports Mon Feb 26 3:30: 7 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6EC8D37B4EC for ; Mon, 26 Feb 2001 03:30:04 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1QBU4H56290; Mon, 26 Feb 2001 03:30:04 -0800 (PST) (envelope-from gnats) Date: Mon, 26 Feb 2001 03:30:04 -0800 (PST) Message-Id: <200102261130.f1QBU4H56290@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Rob Simmons Subject: Re: ports/23554: stunnel-3.8.4 creates pid files in /var/run/stunnel = problem with rc script Reply-To: Rob Simmons Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/23554; it has been noted by GNATS. From: Rob Simmons To: Martti Kuparinen Cc: , Martti Kuparinen Subject: Re: ports/23554: stunnel-3.8.4 creates pid files in /var/run/stunnel = problem with rc script Date: Mon, 26 Feb 2001 06:25:50 -0500 (EST) If you take out the 'mkdir /var/run/stunnel' and add the '-P /var/run' it is much more Zen. :) Robert Simmons Systems Administrator http://www.wlcg.com/ On Mon, 26 Feb 2001, Martti Kuparinen wrote: > On Sun, 25 Feb 2001, Rob Simmons wrote: > > > It is fixed in the application, but the stunnel.sh rc script does not > > reflect the change. There are two changes to make to the rc script: > > > > ${STUNNEL} -d 993 -r localhost:imap -P /var/run -p /usr/local/etc/stunnel.pem > > ${STUNNEL} -d 995 -r localhost:pop3 -P /var/run -p /usr/local/etc/stunnel.pem > > > > The -P switch that fixes the problem should be added to the rc script, > > since the default value for -P is still /var/run/stunnel :) > > But stunnel creates the /var/run/stunnel directory if needed... at least > it did for me. > > # pkg_info | grep stunnel-3.14 > stunnel-3.14 SSL encryption wrapper for standard network daemons > > # /usr/local/etc/rc.d/stunnel.sh stop > # rm -rf /var/run/stunnel > > # /usr/local/etc/rc.d/stunnel.sh start > # ps ax | grep stunnel > 19940 ?? Is 0:00.00 stunnel -d 993 -r localhost:imap -p /usr/local/etc/st > 19943 ?? Is 0:00.00 stunnel -d 995 -r localhost:pop3 -p /usr/local/etc/st > # ls -l /var/run/stunnel/ > -rw-r--r-- 1 root wheel 5 Feb 26 08:03 stunnel.localhost.imap.pid > -rw-r--r-- 1 root wheel 5 Feb 26 08:03 stunnel.localhost.pop3.pid > > Martti > > --- > Ericsson Research / NomadicLab > Martti Kuparinen > http://www.iki.fi/~kuparine/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message