[lxc-devel] [distrobuilder/master] generators/lxd-agent: Fix openRC service file
monstermunchkin on Github
lxc-bot at linuxcontainers.org
Wed Mar 11 07:34:21 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200311/2a7b67c1/attachment.bin>
-------------- next part --------------
From 93e2ff0ead9a4379f7d34fd4ed75d7a6d6d110ba Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Wed, 11 Mar 2020 08:33:37 +0100
Subject: [PATCH] generators/lxd-agent: Fix openRC service file
Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
generators/lxd-agent.go | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/generators/lxd-agent.go b/generators/lxd-agent.go
index d415b55..5d1a095 100644
--- a/generators/lxd-agent.go
+++ b/generators/lxd-agent.go
@@ -130,7 +130,10 @@ func (g LXDAgentGenerator) handleOpenRC(sourceDir string) error {
description="LXD - agent"
command=/run/lxd_config/9p/lxd-agent
-required_files=/dev/virtio-ports/org.linuxcontainers.lxd
+command_background=true
+pidfile=/run/lxd-agent.pid
+start_stop_daemon_args="--chdir /run/lxd_config/9p"
+required_dirs=/run/lxd_config/9p
depend() {
need lxd-agent-9p
More information about the lxc-devel
mailing list