Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 2016 11:18:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 206287] net/htpdate: improve startup script
Message-ID:  <bug-206287-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 206287
           Summary: net/htpdate: improve startup script
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: jgh@FreeBSD.org
          Reporter: Nick@van-laarhoven.org
          Assignee: jgh@FreeBSD.org
             Flags: maintainer-feedback?(jgh@FreeBSD.org)

The startup script does not allow changing command line flags as they are
overridden by the command_args statement. The new initialisation first sets
defaults and then calls load_rc_config instead of updating settings.

My main problem was that I wanted to remove -s. I can now do that with

htpdate_enable=3D'YES'
htpdate_flags=3D"-l"

Hopefully this is of use.


. /etc/rc.subr

htpdate_enable=3D'NO'
htpdate_servers=3D'www.freebsd.org www.linux.com'
htpdate_flags=3D"-l -s"

load_rc_config htpdate

name=3Dhtpdate
rcvar=3Dhtpdate_enable
servers=3D${htpdate_servers}
pidfile=3D/var/run/htpdate.pid

command=3D"/usr/local/bin/htpdate"
command_args=3D"-D $servers"
stop_cmd=3Dhtpdate_stop

--=20
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-206287-13>