[Pkg-net-snmp-devel] Bug#684721: /lib configuration files?

Chris Francy francyci at gmail.com
Sat Jan 28 00:05:20 UTC 2017

On Fri, 2 Dec 2016 14:14:09 -0500 (EST) Jon Daley
<debian at jon.limedaley.com> wrote:
> With systemd, has that changed - e.g. should I be putting /lib/systemd
> under source control as well?  Does systemd have a provision for
> user-supplied customizations to the defaults in /lib/systemd?  I imagine
> that my customizations will be overwritten (with a warning, hopefully?)
> upon upgrade?

With systemd if you want to override a system unit make a copy into
the /etc/systemd/system folder, and make your changes there.

So `cp /lib/systemd/system/snmpd.service
/etc/systemd/system/snmpd.service` and make your adjustments to the
copy.  Systemd will prefer a unit from the /etc folder of a unit from
the /lib/systemd.

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