❦ 16 janvier 2018 11:01 +0100, Ingo Rauschenberg 
<ingo.rauschenb...@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

Attachment: signature.asc
Description: PGP signature

Reply via email to