From owner-freebsd-ports  Thu Dec 14 12:10: 7 2000
From owner-freebsd-ports@FreeBSD.ORG  Thu Dec 14 12:10:01 2000
Return-Path: <owner-freebsd-ports@FreeBSD.ORG>
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 A1FA137B698
	for <freebsd-ports@hub.freebsd.org>; Thu, 14 Dec 2000 12:10:01 -0800 (PST)
Received: (from gnats@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id eBEKA1g30422;
	Thu, 14 Dec 2000 12:10:01 -0800 (PST)
	(envelope-from gnats)
Resent-Date: Thu, 14 Dec 2000 12:10:01 -0800 (PST)
Resent-Message-Id: <200012142010.eBEKA1g30422@freefall.freebsd.org>
Resent-From: gnats-admin@FreeBSD.org (GNATS Management)
Resent-To: freebsd-ports@FreeBSD.org
Resent-Reply-To: gnats-admin@FreeBSD.org, rsimmons@wlcg.com
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 6F60737B400
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Dec 2000 12:00:39 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id eBEK0dc27643;
	Thu, 14 Dec 2000 12:00:39 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200012142000.eBEK0dc27643@freefall.freebsd.org>
Date: Thu, 14 Dec 2000 12:00:39 -0800 (PST)
From: rsimmons@wlcg.com
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
X-Send-Pr-Version: www-1.0
Subject: ports/23554: stunnel-3.8.4 creates pid files in /var/run/stunnel = problem with rc script
Resent-Sender: gnats@FreeBSD.org
Sender: owner-freebsd-ports@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org


>Number:         23554
>Category:       ports
>Synopsis:       stunnel-3.8.4 creates pid files in /var/run/stunnel = problem with rc script
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 14 12:10:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Rob Simmons
>Release:        4.2-STABLE
>Organization:
>Environment:
FreeBSD mail.wlcg.com 4.2-STABLE FreeBSD 4.2-STABLE #0: Wed Dec 13 00:00:27 EST 2000     rsimmons@mail.wlcg.com:/usr/obj/usr/src/sys/WASABI  i386
>Description:
The port, stunnel-3.8.4, creates its pid files in /var/run/stunnel.  This is not a big problem unless you reboot the machine, and the /var/run directory gets cleaned out.  When the rc script for stunnel runs at boot, it can't start because its looking for this directory which does not exist.
>How-To-Repeat:
Install and configure stunnel to forward imapd and popd, then reboot the machine.  stunnel will not start.
>Fix:
Here is a modified rc script for stunnel that works around the problem.  A better solution is to patch stunnel to create its pid files in /var/run not /var/run/stunnel:
#!/bin/sh
STUNNEL="/usr/local/sbin/stunnel"

case "$1" in
    start)
        mkdir /var/run/stunnel
        ${STUNNEL} -D 0 -d 993 -r localhost:143 -p /usr/local/etc/stunnel.pem
        ${STUNNEL} -D 0 -d 995 -r localhost:110 -p /usr/local/etc/stunnel.pem
        ;;

    stop)
        killall `basename ${STUNNEL}`
        ;;

    *)
        echo ""
        echo "Usage: `basename $0` { start | stop }"
        echo ""
        ;;
esac

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message