forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-emulation/libpod: add init script a logrotate config
Package-Manager: Portage-2.3.54, Repoman-2.3.12 Signed-off-by: Zac Medico <[email protected]>
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/sbin/openrc-run | ||
# Copyright 2015-2019 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
description="Podman Remote API Service" | ||
LOG_PATH="/var/log/${RC_SVCNAME}" | ||
RUN_PATH="/run/${RC_SVCNAME}" | ||
pidfile="${RUN_PATH}/${RC_SVCNAME}.pid" | ||
command="/usr/bin/podman" | ||
command_args="--log-level debug varlink -t 0 unix:/run/podman/io.podman" | ||
command_background="true" | ||
start_stop_daemon_args="--stdout ${LOG_PATH}/${RC_SVCNAME}.log --stderr ${LOG_PATH}/${RC_SVCNAME}.log" | ||
|
||
start() { | ||
checkpath -d "${RUN_PATH}" "${LOG_PATH}" | ||
default_start | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/var/log/podman/podman.log { | ||
missingok | ||
size 5M | ||
rotate 3 | ||
compress | ||
copytruncate | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters