[lxc-devel] [lxc/master] templates: use correct cron version in alpine template

melato on Github lxc-bot at linuxcontainers.org
Tue Sep 6 14:12:23 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 353 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160906/deacffe8/attachment.bin>
-------------- next part --------------
From b68d0b8c3d98d86665a17b89dd6231201f9d164a Mon Sep 17 00:00:00 2001
From: Alex Athanasopoulos <alex at melato.org>
Date: Tue, 6 Sep 2016 17:09:55 +0300
Subject: [PATCH] templates: use correct cron version in alpine template

Signed-off-by: Alex Athanasopoulos <alex at melato.org>
---
 templates/lxc-alpine.in | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in
index 988f109..a6b3363 100644
--- a/templates/lxc-alpine.in
+++ b/templates/lxc-alpine.in
@@ -364,8 +364,12 @@ setup_services() {
 	done
 
 	# default runlevel
-	for svc_name in networking cron; do
-		ln -s /etc/init.d/$svc_name etc/runlevels/default/$svc_name
+	for svc_name in networking cron crond; do
+		# issue 1164: alpine renamed cron to crond
+		# Use the one that exists.
+		if [ -e etc/init.d/$svc_name ]; then
+			ln -s /etc/init.d/$svc_name etc/runlevels/default/$svc_name
+		fi
 	done
 }
 


More information about the lxc-devel mailing list