Skip to content

Commit 1aab1f0

Browse files
authored
Merge pull request #2065 from rancher-sandbox/alpine-guestagent-logging
Add lima-guestagent logging for Alpine
2 parents 4f88b60 + c9eb030 commit 1aab1f0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/25-guestagent-base.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ if [ -f /sbin/openrc-run ]; then
2424
#!/sbin/openrc-run
2525
supervisor=supervise-daemon
2626
27+
log_file="${log_file:-/var/log/${RC_SVCNAME}.log}"
28+
err_file="${err_file:-${log_file}}"
29+
log_mode="${log_mode:-0644}"
30+
log_owner="${log_owner:-root:root}"
31+
32+
supervise_daemon_args="${supervise_daemon_opts:---stderr \"${err_file}\" --stdout \"${log_file}\"}"
33+
2734
name="lima-guestagent"
2835
description="Forward ports to the lima-hostagent"
2936

0 commit comments

Comments
 (0)