Skip to content

Commit

Permalink
podvm: Fix agent config path
Browse files Browse the repository at this point in the history
Ensure agent config exists in the new dir under /run

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
  • Loading branch information
bpradipt committed Dec 19, 2023
1 parent de82a0d commit 5104ec4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions podvm/files/etc/systemd/system/kata-agent.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ After=netns@podns.service process-user-data.service

[Service]
ExecStartPre=mkdir -p /run/kata-containers
ExecStartPre=mkdir -p /run/peerpod
ExecStartPre=-ln -s /etc/agent-config.toml /run/peerpod/agent-config.toml
ExecStart=/usr/local/bin/kata-agent --config /run/peerpod/agent-config.toml
ExecStartPre=-umount /sys/fs/cgroup/misc
ExecStopPost=/usr/local/bin/kata-agent-clean --config /run/peerpod/agent-config.toml
Expand Down

0 comments on commit 5104ec4

Please sign in to comment.