Solved service reports cannot find /etc/rc.conf

Code:
root@mx32 ~]# freebsd-version
12.3-RELEASE-p2
[root@mx32 ~]# uname -a
FreeBSD mx32.harte-lyne.ca 12.3-RELEASE-p1 FreeBSD 12.3-RELEASE-p1 GENERIC  amd64

I have recently begun to see this in one of our (iocage managed) jails while logged in via ssh.

Code:
# service postfix status
/etc/rc.conf: $: not found
/etc/rc.conf: $: not found
/etc/rc.conf: $: not found
/etc/rc.conf: $: not found
postfix is running as pid 17786.

# service -e
/etc/rc.conf: $: not found
/etc/rc.conf: $: not found
. . .

I have checked and there is indeed an /etc/rc.conf file. Any idea as to what is causing this?
 
The problem was here. I evidently copied and pasted this code from a vim display that had set list on thus the presence of the extraneous $ characters.
Code:
$
# Jitter root cron jobs between 0 and 180 seconds after scheduled time$
cron_flags="-j 180 -J 180"$
$
Should be:
Code:
# Jitter root cron jobs between 0 and 60 seconds after scheduled time
cron_flags="-j 60"
 
Last edited:
Back
Top