cc-container-mng: install config at /etc
There is no need to have a dedicated folder, as we only use a configuration file. Other data is stored in a different path. https://onedigi.atlassian.net/browse/DEL-10035 Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
parent
6d29433642
commit
61dc4c88cf
|
|
@ -41,20 +41,20 @@ do_install:append() {
|
|||
install -m 0644 ${WORKDIR}/cc-containerd.service ${D}${systemd_system_unitdir}/cc-containerd.service
|
||||
install -m 0644 ${WORKDIR}/cc-containerd-shutdown.service ${D}${systemd_system_unitdir}/cc-containerd-shutdown.service
|
||||
|
||||
install -d ${D}${sysconfdir}/cc-container
|
||||
install -m 0644 ${S}/cc-container-mng.conf ${D}${sysconfdir}/cc-container/cc-container-mng.conf
|
||||
install -d ${D}${sysconfdir}
|
||||
install -m 0644 ${S}/cc-container-mng.conf ${D}${sysconfdir}/cc-container-mng.conf
|
||||
|
||||
sed -i \
|
||||
-e 's|"/var/lib/cc-container/cc-containers.conf"|"/mnt/data/cc-container/cc-containers.conf"|' \
|
||||
-e 's|"/var/lib/cc-container/state.json"|"/mnt/data/cc-container/state.json"|' \
|
||||
-e 's|"/var/lib/cc-container"|"/mnt/data/cc-container"|' \
|
||||
${D}${sysconfdir}/cc-container/cc-container-mng.conf
|
||||
${D}${sysconfdir}/cc-container-mng.conf
|
||||
}
|
||||
|
||||
FILES:${PN}:append = " \
|
||||
${systemd_system_unitdir}/cc-containerd.service \
|
||||
${systemd_system_unitdir}/cc-containerd-shutdown.service \
|
||||
${sysconfdir}/cc-container/cc-container-mng.conf \
|
||||
${sysconfdir}/cc-container-mng.conf \
|
||||
"
|
||||
|
||||
CONFFILES:${PN} += "${sysconfdir}/cc-container/cc-container-mng.conf"
|
||||
CONFFILES:${PN} += "${sysconfdir}/cc-container-mng.conf"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Before=shutdown.target reboot.target halt.target poweroff.target kexec.target
|
|||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/cc-containerd --config-file /etc/cc-container/cc-container-mng.conf --stop-managed-containers
|
||||
ExecStart=/usr/bin/cc-containerd --config-file /etc/cc-container-mng.conf --stop-managed-containers
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Wants=network.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/cc-containerd --config-file /etc/cc-container/cc-container-mng.conf
|
||||
ExecStart=/usr/bin/cc-containerd --config-file /etc/cc-container-mng.conf
|
||||
# Stop only the daemon process; keep managed containers running.
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
|
|
|||
Loading…
Reference in New Issue