Skip to content

Commit c9eb030

Browse files
committed
Add lima-guestagent logging for Alpine
This is just the usual logging boilerplate used with supervise-daemon. Signed-off-by: Jan Dubois <[email protected]>
1 parent 4f88b60 commit c9eb030

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)