From owner-freebsd-questions@freebsd.org Mon Jul 16 22:35:56 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 33A681040940 for ; Mon, 16 Jul 2018 22:35:56 +0000 (UTC) (envelope-from noel.mcloughlin@gmail.com) Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8F5838638F for ; Mon, 16 Jul 2018 22:35:55 +0000 (UTC) (envelope-from noel.mcloughlin@gmail.com) Received: by mail-lj1-x22f.google.com with SMTP id p6-v6so31361041ljc.5 for ; Mon, 16 Jul 2018 15:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=qJ8jc9AuXrTi18SJGA9eUEYHgS3W1a1LjZDaeB9h/JI=; b=rZrVbPtN9XLJMizrtxxJQ8qDivYhmrNPn3Bw85nRBuiNkthFW0nccxF+Lb+SRjNWHY 3B3hkIk64sl18/mUFj/FBR+J7DKaHeVXm2WDaJdLMIxrTV7d22Aw5SRmshKdPBn5WiPr qECTF+JQd8oQ8OeCMpjdCFhiua1vKTu2wbJQKmpqYxom65j4PLz6CuVp300UNxSj7A/i bb4fTTvNkUEivSuDkqPfqT3Gy1nRh5Lf5qrf3q6XsmUcsJZz4zHm/o+yrgTGtgB+ur0k h6UII2uEg2jwB6vNIe3nmx7WU3bFtiqQtEVqb3zUTLdtfljXjyN+fmW6oBE5tiuCZBkJ BHbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=qJ8jc9AuXrTi18SJGA9eUEYHgS3W1a1LjZDaeB9h/JI=; b=j6F9OBvQfeCqWlWbGURXy/PMtiPtQOCTjz/St2l6bMKndfWLRbLXc6xT5GS71TsaYM YRN02/kS4ZmAN/OcbbcFJYSI7NbjZCQB0IVN9LNZAlGegmH0mJ7zhriskZTtkmp1K7vF btQ/qLtL5H5TV88+qmkpI/LAKPq3pGWjDjE6Du+KrnPw4kqnCm3r6NzL/NnrgpRSy6zX UF3ztZ8z8wSq7HbsL6ntdJmwFlJVJOgYw+WKZzt2L+gTmQ4sRvl/M5NaOCusmduDeDf+ 7Tg5R/taEIt8+BF+c+uOitVGPL1rQdwz7cxEKvdulaXCSb6IVw9mChxp0PCvRorDOULU Aaow== X-Gm-Message-State: AOUpUlFT/15ofNKOw57bz6Mm4oIymO2/LWdiFPGLTVWJfMqWsdK5QLL0 0leYRWlF20I7aScJkfkEOdZamGMUrn+An+exDcF6fA== X-Google-Smtp-Source: AAOMgpeSp3D3O4bAGAdmIB4aAk0fGJz2Box+8sVpp18N25EMazIJGFmHX/Gi3cynxWuZNIDNyBp+9iipEaLuHv5nl/w= X-Received: by 2002:a2e:5d1c:: with SMTP id r28-v6mr11063148ljb.89.1531780553827; Mon, 16 Jul 2018 15:35:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Noel McLoughlin Date: Mon, 16 Jul 2018 23:35:15 +0100 Message-ID: Subject: Re: ctld and ucl question To: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2018 22:35:56 -0000 Nevermind, I found the answer in rc.subr(8) where ${name}_env is mentioned. Appending 'ctld_env="-u"' to /etc/rc.conf done the trick. On Mon, Jul 16, 2018 at 5:07 PM Noel McLoughlin wrote: > > Hey guys, > > I have a question regarding ctl.conf(5), ctld(8) and UCL configuration > file format. According to docs, the UCL format is supported and can > be read by ctld when '-u' flag is passed. Trying to implement this > feature raises few questions. > > Since /etc/rc.d/ctd and cltd(8) do not reference any (say) > CTLD_RUNTIME_ARGS environment variables, its not clear where I > configure daemon to use UCL format on startup? Unless I'm missing > something, the rc script needs support for daemon options? > > /etc/rc.d/ctld: WARNING: run_rc_command: cannot run /usr/sbin/ctld -u > > > Where are issues traced for FreeBSD, and more specifically the ctld packages. > > Thank you. > Noel