Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 462118
Collapse All | Expand All

(-)a/eclass/systemd.eclass (-1 / +20 lines)
Lines 398-400 systemd_is_booted() { Link Here
398
	debug-print "${FUNCNAME}: [[ -d /run/systemd/system ]] -> ${ret}"
398
	debug-print "${FUNCNAME}: [[ -d /run/systemd/system ]] -> ${ret}"
399
	return ${ret}
399
	return ${ret}
400
}
400
}
401
- 
401
402
# @FUNCTION: systemd_tmpfiles_create
403
# @USAGE: <tmpfilesd> ...
404
# @DESCRIPTION:
405
# Invokes systemd-tmpfiles --create with given arguments.
406
# Does nothing if ROOT != / or systemd-tmpfiles is not in PATH.
407
# This function should be called from pkg_postinst.
408
#
409
# Generally, this function should be called with the names of any tmpfiles
410
# fragments which have been installed, either by the build system or by a
411
# previous call to systemd_dotmpfilesd. This ensures that any tmpfiles are
412
# created without the need to reboot the system.
413
systemd_tmpfiles_create() {
414
	debug-print-function ${FUNCNAME} "${@}"
415
416
	[[ $# -gt 0 ]] || die "${FUNCNAME}: Must specify at least one filename"
417
	[[ ${ROOT} == / ]] || return 0
418
	type systemd-tmpfiles > /dev/null || return 0
419
	systemd-tmpfiles --create "$@"
420
}

Return to bug 462118