<div dir="ltr">Hi Josu,<div>  The init script is only used for non-systemd setups, so first you need to work out what you have there.  If you are not using systemd, then the snmpd parameters come from /etc/default/snmpd and /etc/init.d/snmpd</div><div><br></div><div>If you are using systemd then the parameters by default come from /lib/systemd/system/snmpd.service  However, local changes are found in /etc/systemd/system/snmpd.service</div><div><br></div><div>I would guess a local change somewhere is stopping snmpd from creating a pid. It uses the -p option to do so, you should see something like this in ps:</div><div>  2022 ?        Ss     0:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -u Debian-snmp -g Debian-snmp -I -smux mteTrigger mteTriggerConf -f -p /run/snmpd.pid<br></div><div><br></div><div>For example, I had an old /etc/systemd/system/snmpd.service lying around that stopped it for me.</div><div><br></div><div> - Craig</div><div><br></div><br><div class="gmail_quote"><div dir="ltr">On Sun, 22 Apr 2018 at 21:12 Josu Lazkano <<a href="mailto:josu.lazkano@gmail.com">josu.lazkano@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am using snmpd in Debian server, it really works great.<br>
<br>
The problem is that there is no PID file for the service.<br>
<br>
In the init script is configured by default in /run/snmpd.pid, but<br>
there is no file there.<br>
<br>
How could I configure to get the PID file in the filesystem?<br>
<br>
Thanks in advance.<br>
<br>
Kind regards.<br>
<br>
-- <br>
Josu Lazkano<br>
<br>
_______________________________________________<br>
Pkg-net-snmp-devel mailing list<br>
<a href="mailto:Pkg-net-snmp-devel@alioth-lists.debian.net" target="_blank">Pkg-net-snmp-devel@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-net-snmp-devel" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-net-snmp-devel</a></blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>Craig Small             <a href="https://dropbear.xyz/">https://dropbear.xyz/</a>     csmall at : <a href="http://dropbear.xyz">dropbear.xyz</a></div><div>Debian GNU/Linux        <a href="https://www.debian.org/">https://www.debian.org/</a>   csmall at : <a href="http://debian.org">debian.org</a></div><div>Mastodon: @<a href="mailto:smallsees@social.dropbear.xyz">smallsees@social.dropbear.xyz</a>             Twitter: @smallsees  </div><div>GPG fingerprint:      5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5</div></div></div></div>