ports/66924: [PATCH] Can't restart security/drweb daemon via 00drwebd.sh

Dmitry A Grigorovich odip at bionet.nsc.ru
Thu May 20 07:10:33 UTC 2004


>Number:         66924
>Category:       ports
>Synopsis:       [PATCH] Can't restart security/drweb daemon via 00drwebd.sh
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 20 00:10:26 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry A Grigorovich
>Release:        FreeBSD 4.8-RELEASE-p4 i386
>Organization:
ICiG
>Environment:
System: FreeBSD hydra.bionet.nsc.ru 4.8-RELEASE-p4 FreeBSD 4.8-RELEASE-p4 #4: Sat Oct 4 02:33:02 NOVST 2003 root at hydra.bionet.nsc.ru:/usr/obj/usr/src/sys/ODIP i386

>Description:

Try restarting drweb daemon:
/usr/local/etc/rc.d/00drwebd.sh reload
Restarting failed because incorrect 00drwebd.sh !

>How-To-Repeat:

Install security/drweb (drweb-4.31.4) port

Try restart drweb daemon:
/usr/local/etc/rc.d/00drwebd.sh reload
Restarting failed because incorrect 00drwebd.sh !

>Fix:

cd /usr/ports/security/drweb/files
Change file patch-ac to new
( section in case restart changed )

Remove drweb, build and install new

--- patch-ac begins here ---
--- usr/local/etc/rc.d/00drwebd.sh.orig	Mon Apr 26 21:34:56 2004
+++ usr/local/etc/rc.d/00drwebd.sh	Thu May 20 13:44:57 2004
@@ -3,20 +3,20 @@
 case "$1" in
     stop)
 	echo -n "Shutting down Dr. Web daemon..."
-	kill `cat /var/drweb/run/drwebd.pid | head -1`
+	kill `cat %INSTALL%/run/drwebd.pid | head -1`
     ;;
     reload)
 	echo -n "Reloading Dr. Web daemon..."
-	kill -HUP `cat /var/drweb/run/drwebd.pid | head -1`
+	kill -HUP `cat %INSTALL%/run/drwebd.pid | head -1`
     ;;
     restart)
 	echo -n "Restarting Dr. Web daemon..."
-	kill `cat /var/drweb/run/drwebd.pid | head -1`
+	kill `cat %INSTALL%/run/drwebd.pid | head -1`
 	sleep 1
-	/usr/local/drweb/drwebd
+	%INSTALL%/drwebd -ini=%INSTALL%/drweb32.ini
     ;;
     *)
 	echo -n "Starting Dr. Web daemon..."
-	/usr/local/drweb/drwebd
+	%INSTALL%/drwebd -ini=%INSTALL%/drweb32.ini
 esac
 
--- patch-ac ends here ---


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



More information about the freebsd-ports-bugs mailing list