Re: First time user experiences
Guillermo <[email protected]> Tue, 24 Feb 2026 22:25:57 -0300
| Newsgroups | gmane.comp.sysutils.supervision.general |
|---|---|
| Message-ID | <CADQ2Nw8w-QVH7F33sornkf3n4ESDWpV7qBvSXiSoxnwAOVdD8w@mail.gmail.com> |
Hi,
El mar, 24 feb 2026 a las 8:15, Ian Macdonald via supervision escribi=C3=B3=
:
>
> My first question concerns importas. For instance, my network script
> contains lines like:
> if{ ip addr add 192.168.0.2/8 dev eth0}
> whereas most example scripts I see do:
> {importas -i ETH0_IP4 ETH0_IP}
> if{ifconfig eth0 ${ETH0_IP4 etc..}
>
> Does the use of 'importas' mean that you could edit a config file to
> change some parameters without having to recompile the datadase?
It gets the command line argument passed to ifconfig after "eth0" from
the value of an environment variable =E2=80=94variable ETH0_IP in this case=
=E2=80=94,
instead of hardcoding it in the script like in your first example. The
shell equivalent of that would be:
ifconfig eth $ETH0_IP etc..
In turn, one can set values of environment variables from a text file
using execline's envfile program, or from an environment directory
using s6's s6-envdir program.
G.