From bf058dc49492b3a102a28ed25764a517fcebfb40 Mon Sep 17 00:00:00 2001 From: Chuck Lantz Date: Fri, 16 Dec 2022 09:47:21 -0800 Subject: Multi-distro support for common script, refactor, fixes (#326) --- src/common-utils/bin/systemctl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 src/common-utils/bin/systemctl (limited to 'src/common-utils/bin/systemctl') diff --git a/src/common-utils/bin/systemctl b/src/common-utils/bin/systemctl new file mode 100755 index 0000000..4ead985 --- /dev/null +++ b/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