From nobody Tue Mar 12 14:43:44 2024
X-Original-To: rc@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TvGc11M0Fz5Dx8y
	for <rc@mlmmj.nyi.freebsd.org>; Tue, 12 Mar 2024 14:43:45 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
	 client-signature RSA-PSS (4096 bits) client-digest SHA256)
	(Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4TvGc06Fxxz4p6H
	for <rc@FreeBSD.org>; Tue, 12 Mar 2024 14:43:44 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710254624; a=rsa-sha256; cv=none;
	b=dAX2A5i1haah7gBh0Ndn0pPqFHyQStJjOrEjRHJkyxRjzzh6+kVR0PWi2VjcSmSoARPla3
	xFvnvOeZc86jKtN3QBVFuwMtdCusNyaYGd5AK/8jpdnIkUYMZ4b6+2T80MgdvPp0d5aXJG
	JGKqAp9irPUbqGcbQjM6wMQnr3hIrdrlLN+BgRsBZXh8/O7da3KtaJzXDIaU+ZLEsKvLK3
	E1Jb9Ek6GI9JbuujI96wPoE9FnRYiA00wB97AwW4FS2ifSKqu+frU7sg6OX766BXT+nc9C
	WMo8+gRvLxHjm7HBq2rowEilpm2lp6c6LWPqPG5flSQlL74ACDy16JYSntfxfg==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1710254624;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=gtIFcU7yr6sN59gP0UNhM98EmhNIG4QTW//VHLsoQPQ=;
	b=qhAKavoZ/fjj96bpLt8m0InmJOn22KV56B/nfrgJXL2+w5LP/IswvpCxNSV8rQfsVeuUmS
	qM1J9HEp/rGCBCp3IAedZhJwZazHAQ0Q5SniyeSgGxfOr0jBTlYgo+MVELZgCFjGHpIARC
	xbK1aJkXlJW0vr6f8fzVh0D3FAM0TIIQM90lwuoYiD11Tt2yRlOXNM4O2LIA7MwqnZ0jW+
	jRfqYYX9VGPRR71MdzLEicc7HSepFrvs4qtwWuWc4y9/3TSX8Bctxrmi4bG0RBFILNoy62
	LrIktr8+ue5sR4waKS3AE3vKVNsHwzQrB515xbMxPNBwFw8GCCmxIQSN5eQ0KA==
Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(Client did not present a certificate)
	by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TvGc05rQmz1Hbs
	for <rc@FreeBSD.org>; Tue, 12 Mar 2024 14:43:44 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org ([127.0.1.5])
	by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42CEhi6L028385
	for <rc@FreeBSD.org>; Tue, 12 Mar 2024 14:43:44 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42CEhiHP028384
	for rc@FreeBSD.org; Tue, 12 Mar 2024 14:43:44 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: rc@FreeBSD.org
Subject: [Bug 267846] rc.conf: var_run_enable="YES" without any effect on
 tmpfs:/var/run
Date: Tue, 12 Mar 2024 14:43:44 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Base System
X-Bugzilla-Component: conf
X-Bugzilla-Version: CURRENT
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: Affects Many People
X-Bugzilla-Who: junchoon@dec.sakura.ne.jp
X-Bugzilla-Status: Open
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: rc@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-267846-20181-tCaJ3lNKlT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-267846-20181@https.bugs.freebsd.org/bugzilla/>
References: <bug-267846-20181@https.bugs.freebsd.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Id: Discussion related to /etc/rc.d design and implementation <freebsd-rc.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-rc
List-Help: <mailto:rc+help@freebsd.org>
List-Post: <mailto:rc@freebsd.org>
List-Subscribe: <mailto:rc+subscribe@freebsd.org>
List-Unsubscribe: <mailto:rc+unsubscribe@freebsd.org>
Sender: owner-freebsd-rc@freebsd.org
X-BeenThere: freebsd-rc@freebsd.org
MIME-Version: 1.0

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

Tomoaki AOKI <junchoon@dec.sakura.ne.jp> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |junchoon@dec.sakura.ne.jp

--- Comment #4 from Tomoaki AOKI <junchoon@dec.sakura.ne.jp> ---
Not a fix, but just a workaround.

Run `serivce var_run save` as root before shutdown.
Maybe because of the problem, it seems to be kept, but if something new whi=
ch
requires new directory structute in /var/run but creates them only installa=
tion
are added, this should be done again.

Put script below in /etc/rc.conf[.local]. An example for environments having
clamav installed. As rc.conf is actually a /bin/sh script, this worked for =
me.
The actual process (`test` to redirection) are borrowed from /etc/rc.d/var_=
run.

if [ ! -d /var/run/clamav ] ; then
  test -f ${var_run_mtree} && \
    mtree -U -i -q -f ${var_run_mtree} -p /var/run > /dev/null
fi

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