Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 2014 19:22:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 192994] New: net/dhcprelay: rc.d script patch
Message-ID:  <bug-192994-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192994

            Bug ID: 192994
           Summary: net/dhcprelay: rc.d script patch
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: zxzharmlesszxz@gmail.com

dhcprelay doesn't start with rc.d script from port tree
my patch for script

--- ../../files/dhcprelay.in.orig       2014-05-11 13:03:32.000000000 +0300
+++ ../../files/dhcprelay.in            2014-08-25 21:56:06.000000000 +0300
@@ -15,16 +15,15 @@
 . /etc/rc.subr

 name=dhcprelay
-rcvar=dhcprelay_enable
+rcvar=${name}_enable
+
+load_rc_config ${name}
+
+: ${dhcprelay_enable="NO"}
+: ${dhcprelay_ifaces=""}

 pidfile=/var/run/${name}.pid
 command=%%PREFIX%%/bin/${name}
 command_args="${dhcprelay_ifaces} ${dhcprelay_server}"

-# echo $rc_flags
-
-load_rc_config ${name}
-
-dhcprelay_enable=${dhcprelay_enable:-"NO"}
-
 run_rc_command "$1"

-- 
You are receiving this mail because:
You are the assignee for the bug.



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