Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jul 2004 14:58:42 GMT
From:      UCX Foe <ucxfoe@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/68771: freeradius rc script needs $PREFIX in stop opt
Message-ID:  <200407071458.i67EwgQg068466@www.freebsd.org>
Resent-Message-ID: <200407071500.i67F0dCr045104@freefall.freebsd.org>

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

>Number:         68771
>Category:       ports
>Synopsis:       freeradius rc script needs $PREFIX in stop opt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 07 15:00:39 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     UCX Foe
>Release:        4_9
>Organization:
Digital Equipment Corp
>Environment:
FreeBSD amnesiac 4.9-RELEASE-p4 FreeBSD 4.9-RELEASE-p4 #3: Wed Apr 28 16:16:43 EDT 2004     root
@amnesiac:/usr/obj/usr/src/sys/BLUEFW  i386
>Description:
need to add $PREFIX to pidfile paths in stop option 
>How-To-Repeat:
      
>Fix:
# diff -uw radiusd.sh.orig radiusd.sh
--- radiusd.sh.orig     Wed Jul  7 10:43:50 2004
+++ radiusd.sh  Wed Jul  7 10:44:14 2004
@@ -25,8 +25,8 @@
        "$PREFIX"/sbin/radiusd $RADIUSD_FLAGS && echo -n " radiusd"
        ;;
 stop)
-       if [ -f /var/run/radiusd/radiusd.pid ]; then
-               kill `cat /var/run/radiusd/radiusd.pid` && echo -n ' radiusd'
+       if [ -f "$PREFIX"/var/run/radiusd/radiusd.pid ]; then
+               kill `cat "$PREFIX"/var/run/radiusd/radiusd.pid` && echo -n ' radiusd'
        fi
        ;;
 *)
>Release-Note:
>Audit-Trail:
>Unformatted:



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