[squid-users] change action of squid -v on squid

Alex Rousskov rousskov at measurement-factory.com
Sun Dec 3 20:11:20 UTC 2017


On 12/03/2017 02:00 AM, --Ahmad-- wrote:

> if i do squid -v it shoes squid version
> how about if i want to disable that thing and don’t show the compile options ?

For that, you need to

* either modify Squid source code (the details are outside of the
squid-users discussion scope but you may be able to get help on squid-dev)

* or wrap Squid executable into your own wrapper script/program (a
simple sysadmin action not specific to Squid).

FWIW, it is usually pointless to hide squid-v info. Consider double
checking your requirements.


> how about if i put other message to be shown ?

Use --enable-build-info option with Squid ./configure script:


>   --enable-build-info="build info string"
>                           Add an additional string in the output of "squid
>                           -v". Default is not to add anything. If the string
>                           is not specified, tries to determine nick and
>                           revision number of the current bazaar branch

FWIW, using --enable-build-info is the right way to add custom
information to squid-v output.


HTH,

Alex.


More information about the squid-users mailing list