It's probably trying to kill the old process using the old nonexistent PID file.<div><br></div><div>systemctl stop snmpd</div><div>Killall snmpd</div><div>systemctl start snmpd</div><div><br></div><div>You may get a message to restart daemon or something like that.<br> <br><div class="gmail_quote"><div dir="ltr">On Mon, 30 Apr. 2018, 05:04 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 again,<br>
<br>
I donload the <a href="https://salsa.debian.org/debian/net-snmp/blob/master/debian/snmpd.service" rel="noreferrer" target="_blank">https://salsa.debian.org/debian/net-snmp/blob/master/debian/snmpd.service</a><br>
to /etc/systemd/system/snmpd.service, then "chmod 755<br>
/etc/systemd/system/snmpd.service".<br>
<br>
But still there is no PID file:<br>
<br>
# /etc/init.d/snmpd restart<br>
[ ok ] Restarting snmpd (via systemctl): snmpd.service.<br>
<br>
There is no file in /run/snmpd.pid<br>
<br>
Thanks for your help.<br>
<br>
Regards.<br>
<br>
2018-04-29 11:34 GMT+02:00 Craig Small <<a href="mailto:csmall@debian.org" target="_blank">csmall@debian.org</a>>:<br>
> Hi,<br>
>   That systemd unit is an old version which, I believe always had that<br>
> problem.<br>
><br>
> The current version is at<br>
> <a href="https://salsa.debian.org/debian/net-snmp/blob/master/debian/snmpd.service" rel="noreferrer" target="_blank">https://salsa.debian.org/debian/net-snmp/blob/master/debian/snmpd.service</a><br>
> See the "-p /run/snmpd.pid" that's what you need.<br>
><br>
> I suggest you either upgrade to the latest snmpd or use this file and put it<br>
> as /etc/systemd/system/snmpd.service<br>
><br>
>  - Craig<br>
><br>
> --<br>
> Craig Small             <a href="https://dropbear.xyz/" rel="noreferrer" target="_blank">https://dropbear.xyz/</a>     csmall at : <a href="http://dropbear.xyz" rel="noreferrer" target="_blank">dropbear.xyz</a><br>
> Debian GNU/Linux        <a href="https://www.debian.org/" rel="noreferrer" target="_blank">https://www.debian.org/</a>   csmall at : <a href="http://debian.org" rel="noreferrer" target="_blank">debian.org</a><br>
> Mastodon: @<a href="mailto:smallsees@social.dropbear.xyz" target="_blank">smallsees@social.dropbear.xyz</a>             Twitter: @smallsees<br>
> GPG fingerprint:      5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5<br>
<br>
<br>
<br>
-- <br>
Josu Lazkano<br>
</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>