4ff71bd741
Now that the tmpfiles.d code is more tested, actually call it from init.d. It assumes that /run is already available when it runs. Please note it runs TWICE. - During sysinit, ideally just after /dev/shm is created, but before udev has started. After udev is also acceptable, but not ideal. - During boot, ideally just after localmount has completed. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
19 lines
316 B
Plaintext
19 lines
316 B
Plaintext
#!@PREFIX@/sbin/runscript
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
# Released under the 2-clause BSD license.
|
|
|
|
description="Create tmpfiles.d entries (boot)"
|
|
|
|
depend()
|
|
{
|
|
need localmount
|
|
}
|
|
|
|
start()
|
|
{
|
|
ebegin "${description/Create/Creating}"
|
|
@LIBEXECDIR@/sh/tmpfiles.sh --create ${tmpfiles_opts}
|
|
eend $?
|
|
return 0
|
|
}
|