You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Nick Kew <ni...@apache.org> on 2011/12/02 14:33:09 UTC
DISTRIB_ID in trafficserver script
I stumbled across a problem of "trafficserver start" exiting at line 217.
Turns out the culprit was an empty DISTRIB_ID. Looking at the top
of the script I see that's set in an idiosyncratic-looking way:
if [ -e /etc/SuSE-release ]; then
DISTRIB_ID="suse"
elif [ -e /etc/fedora-release ]; then
DISTRIB_ID="fedora"
elif [ -e /etc/redhat-release ]; then
... [more of same]
So for an amazon-hosted node I was able to work around it with
a symlink from /etc/system-release to /etc/redhat-release.
Is there a reason for this test, or is it just a historic legacy?
--
Nick Kew
Re: DISTRIB_ID in trafficserver script
Posted by Igor Galić <i....@brainsware.org>.
----- Original Message -----
> I stumbled across a problem of "trafficserver start" exiting at line
> 217.
>
> Turns out the culprit was an empty DISTRIB_ID. Looking at the top
> of the script I see that's set in an idiosyncratic-looking way:
>
> if [ -e /etc/SuSE-release ]; then
> DISTRIB_ID="suse"
> elif [ -e /etc/fedora-release ]; then
> DISTRIB_ID="fedora"
> elif [ -e /etc/redhat-release ]; then
>
> ... [more of same]
>
> So for an amazon-hosted node I was able to work around it with
> a symlink from /etc/system-release to /etc/redhat-release.
>
> Is there a reason for this test, or is it just a historic legacy?
In theory, it's so we know how to start ATS on that OS/distro/platform.
In practice, `uname -s` should probably suffice. Maybe.
> --
> Nick Kew
i
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE