Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Dec 2000 12:00:39 -0800 (PST)
From:      rsimmons@wlcg.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/23554: stunnel-3.8.4 creates pid files in /var/run/stunnel = problem with rc script
Message-ID:  <200012142000.eBEK0dc27643@freefall.freebsd.org>
Resent-Message-ID: <200012142010.eBEKA1g30422@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




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