[Pkg-net-snmp-devel] Bug#887423: Bug#887423: snmptrapd: Systemd service unit definition of snmptrapd ignoring settings in /etc/default/snmptrapd

Vincent Bernat bernat at debian.org
Tue Jan 16 10:22:17 UTC 2018


 ❦ 16 janvier 2018 11:01 +0100, Ingo Rauschenberg <ingo.rauschenberg at cms.hu-berlin.de> :

> I have to use the snmptrapd with some special mib-files from the
> vendors of my hardware suppliers (like Dell, Brocate, Enterasys, Sun,
> Rittal, ...).
> Therefor I defined the MIBSDIR environment variable on my own in the
> file /etc/default/snmptrapd.
>
> With the introduction of systemd there is a systemd service unit file
> provided in the package snmptrapd, located at
> /lib/systemd/system/snmptrapd.service
> Unfortunately this file contains the environment MIBSDIR hard coded.
>
> Because I would prefer to change only files in /etc for configuration
> issues I would ask, if you can change the systemd service unit file like
> this:

You can override anything by using "systemctl edit snmptrapd.service"
and put:

[Service]
Environment="MIBSDIR=..."

This will create /etc/systemd/system/snmptrapd.service.d/override.conf.
-- 
Grief can take care of itself; but to get the full value of a joy you must
have somebody to divide it with.
		-- Mark Twain
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-net-snmp-devel/attachments/20180116/bda4a754/attachment.sig>


More information about the Pkg-net-snmp-devel mailing list