summaryrefslogtreecommitdiff
path: root/app-containers/podman/files/podman-5.0.0_rc4.user.initd
blob: 5b47d68c7fd3e68789c8f9f689baf494ea95e0c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
}