[Bug 206287] net/htpdate: improve startup script

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 15 11:18:50 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206287

            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 at FreeBSD.org
          Reporter: Nick at van-laarhoven.org
          Assignee: jgh at FreeBSD.org
             Flags: maintainer-feedback?(jgh at 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='YES'
htpdate_flags="-l"

Hopefully this is of use.


. /etc/rc.subr

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

load_rc_config htpdate

name=htpdate
rcvar=htpdate_enable
servers=${htpdate_servers}
pidfile=/var/run/htpdate.pid

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

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


More information about the freebsd-ports-bugs mailing list