diff --git a/rootfs/usr/local/etc/docker/init.d/zz-buildah.sh b/rootfs/usr/local/etc/docker/init.d/zz-buildah.sh index 9805b05..ec4f874 100644 --- a/rootfs/usr/local/etc/docker/init.d/zz-buildah.sh +++ b/rootfs/usr/local/etc/docker/init.d/zz-buildah.sh @@ -86,9 +86,6 @@ __run_start_script() { esac } # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# process check functions -__pcheck() { [ -n "$(type -P pgrep 2>/dev/null)" ] && pgrep -x "$1" &>/dev/null && return 0 || return 10; } -__pgrep() { __pcheck "${1:-EXEC_CMD_BIN}" || __ps aux 2>/dev/null | grep -Fw " ${1:-$EXEC_CMD_BIN}" | grep -qv ' grep' | grep '^' && return 0 || return 10; } # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Allow ENV_ variable # Import env file @@ -119,7 +116,6 @@ if [ ! -f "$(type -P "$EXEC_CMD_BIN")" ] && [ -z "$EXEC_CMD_BIN" ]; then exit 2 fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# check if process is already running if __pgrep "$EXEC_CMD_BIN"; then SERVICE_IS_RUNNING="true" echo "$EXEC_CMD_BIN is running"