nav icon indicating copy to clipboard operation
nav copied to clipboard

[BUG] Renaming of `snmptrapd.py` to `snmptrapd` conflicts with Net-SNMP's `snmptrapd`

Open ingeborgoh opened this issue 10 months ago • 2 comments

NAV 5.9.1 FreeBSD 13.2-RELEASE-p11 python39-3.9.18_2 net-snmp-5.9.4,1
$PATH = /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin:/usr/local/nav/bin

The net-snmp package on FreeBSD installs a /usr/local/sbin/snmptrapd NAV 5.9.1 strips the .py-ending of all the daemons and installs a /usr/local/bin/snmptrapd.py

'nav start snmptrapd' then tries to start the wrong snmptrapd due to $PATH

I do not dare to switch /usr/local/bin and /usr/local/sbin in $PATH. Workaround was to add the .py-suffix to NAV's snmptrapd

ingeborgoh avatar Apr 22 '24 11:04 ingeborgoh

In principle, I would prefer several of the existing NAV programs to be prefixed by nav to avoid common binary names. I might suggest renaming NAV's trap daemon to just navtrapd. Viewpoints?

lunkwill42 avatar Apr 22 '24 13:04 lunkwill42

Good idea to rename to navtrapd!

ingeborgoh avatar Apr 29 '24 10:04 ingeborgoh