mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
app-containers/podman: Sync with Gentoo
It's from Gentoo commit 209678c6bc454b852a392a616aff1a60aee28ab7.
This commit is contained in:
parent
55c34da210
commit
6f49c6407e
@ -0,0 +1,6 @@
|
||||
# Config file for /etc/user/init.d/podman
|
||||
|
||||
# Sets the API service daemon log level
|
||||
# valid levels: debug, info, warn, error, fatal or panic
|
||||
#LOG_LEVEL="error"
|
||||
|
@ -0,0 +1,23 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2015-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
supervisor=supervise-daemon
|
||||
description="Podman API Service"
|
||||
|
||||
RUN_PATH="${XDG_RUNTIME_DIR}/podman"
|
||||
LOG_PATH="${RUN_PATH}/log"
|
||||
output_log="${LOG_PATH}/${RC_SVCNAME}.log"
|
||||
error_log="${LOG_PATH}/${RC_SVCNAME}.log"
|
||||
pidfile="${RUN_PATH}/${RC_SVCNAME}.pid"
|
||||
socket="unix://${RUN_PATH}/${RC_SVCNAME}.sock"
|
||||
|
||||
# command_user="${RUN_AS_USER:=root:root}"
|
||||
command="/usr/bin/podman"
|
||||
command_args="--log-level ${LOG_LEVEL:-error} system service --time 0 ${socket}"
|
||||
command_background="true"
|
||||
|
||||
start() {
|
||||
checkpath -o $USER -d "${RUN_PATH}" "${LOG_PATH}"
|
||||
default_start
|
||||
}
|
@ -123,6 +123,12 @@ src_install() {
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/podman.logrotated" podman
|
||||
|
||||
exeinto /etc/user/init.d
|
||||
newexe "${FILESDIR}/podman-5.0.0_rc4.user.initd" podman
|
||||
|
||||
insinto /etc/user/conf.d
|
||||
newins "${FILESDIR}/podman-5.0.0_rc4.user.confd" podman
|
||||
fi
|
||||
|
||||
keepdir /var/lib/containers
|
||||
|
@ -123,6 +123,12 @@ src_install() {
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/podman.logrotated" podman
|
||||
|
||||
exeinto /etc/user/init.d
|
||||
newexe "${FILESDIR}/podman-5.0.0_rc4.user.initd" podman
|
||||
|
||||
insinto /etc/user/conf.d
|
||||
newins "${FILESDIR}/podman-5.0.0_rc4.user.confd" podman
|
||||
fi
|
||||
|
||||
keepdir /var/lib/containers
|
||||
|
Loading…
Reference in New Issue
Block a user