From 11412b2e720f754900b39d195f33af39ed11d085 Mon Sep 17 00:00:00 2001 From: NeonXP Date: Sun, 28 Jan 2024 20:43:11 +0300 Subject: Go теперь фича над базовым образом MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/src/common-utils/bin/systemctl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 features/src/common-utils/bin/systemctl (limited to 'features/src/common-utils/bin/systemctl') diff --git a/features/src/common-utils/bin/systemctl b/features/src/common-utils/bin/systemctl new file mode 100755 index 0000000..4ead985 --- /dev/null +++ b/features/src/common-utils/bin/systemctl @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ -d "/run/systemd/system" ]; then + exec /bin/systemctl "$@" +else + echo '\n"systemd" is not running in this container due to its overhead.\nUse the "service" command to start services instead. e.g.: \n\nservice --status-all' +fi -- cgit v1.2.3