Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2024 13:50:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 281242] .include directive in ctl.conf doesn't workfile as supposed to per UCL file standard
Message-ID:  <bug-281242-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 281242
           Summary: .include directive in ctl.conf doesn't workfile as
                    supposed to per UCL file standard
           Product: Base System
           Version: 14.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: gnoma_86@gbg.bg

At the bottom of my /etc/ctl.conf got the following directive:=20

.include /etc/ctl.d/proxmoxtest.conf

It's a valid configuration file, if I place it's content inside /etc/ctl.co=
nf
it works perfectly fine.=20

Expected result:=20
ctld starts OK=20

Actual result:=20


root@mysystem:/usr/src/lib/libucl # /etc/rc.d/ctld start
Starting ctld.
ctld: error in configuration file at line 28 near '.include': syntax error
ctld: configuration error; exiting
/etc/rc.d/ctld: WARNING: failed to start ctld
root@mysystem:/usr/src/lib/libucl #=20


The behavior doesn't change if the included file is there or not, if includ=
ed
the file syntax is correct or not.


This is the last part of "truss ctld -t"

open("/etc/ctl.conf",O_RDONLY,0666)              =3D 5 (0x5)
ioctl(5,TIOCGETA,0xf380fced854)                  ERR#25 'Inappropriate ioctl
for device'
ioctl(5,TIOCGETA,0xf380fced854)                  ERR#25 'Inappropriate ioctl
for device'
fstat(5,{ mode=3D-rw-r----- ,inode=3D571054,size=3D464,blksize=3D4096 }) =
=3D 0 (0x0)
read(5,"portal-group pg0 {\n\tdiscovery-"...,4096) =3D 464 (0x1d0)
read(5,0x33b37cc09000,4096)                      =3D 0 (0x0)
ctld: error in configuration file at line 28 near '.include': syntax error
write(2,"ctld: error in configuration fil"...,75) =3D 75 (0x4b)
open("/etc/localtime",O_RDONLY,01717)            =3D 6 (0x6)
read(6,"TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0"...,54968) =3D 2077 (0x81d)
close(6)                                         =3D 0 (0x0)
__sysctl("kern.hostname",2,0xf380fced530,0xf380fce9418,0x0,0) =3D 0 (0x0)
getpid()                                         =3D 11333 (0x2c45)
sendto(3,"<28>1 2024-09-03T16:48:47.586183"...,146,0,NULL,0) =3D 146 (0x92)
close(5)                                         =3D 0 (0x0)
ctld: configuration error; exiting
write(2,"ctld: configuration error; exiti"...,35) =3D 35 (0x23)
__sysctl("kern.hostname",2,0xf380fced700,0xf380fce95e8,0x0,0) =3D 0 (0x0)
getpid()                                         =3D 11333 (0x2c45)
sendto(3,"<26>1 2024-09-03T16:48:47.586764"...,106,0,NULL,0) =3D 106 (0x6a)
exit(0x1)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
process exit, rval =3D 1

--=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-281242-227>