[Pkg-net-snmp-devel] Add PID file to snmpd
Craig Small
csmall at debian.org
Sun Apr 29 22:20:36 BST 2018
It's probably trying to kill the old process using the old nonexistent PID
file.
systemctl stop snmpd
Killall snmpd
systemctl start snmpd
You may get a message to restart daemon or something like that.
On Mon, 30 Apr. 2018, 05:04 Josu Lazkano, <josu.lazkano at gmail.com> wrote:
> Hello again,
>
> I donload the
> https://salsa.debian.org/debian/net-snmp/blob/master/debian/snmpd.service
> to /etc/systemd/system/snmpd.service, then "chmod 755
> /etc/systemd/system/snmpd.service".
>
> But still there is no PID file:
>
> # /etc/init.d/snmpd restart
> [ ok ] Restarting snmpd (via systemctl): snmpd.service.
>
> There is no file in /run/snmpd.pid
>
> Thanks for your help.
>
> Regards.
>
> 2018-04-29 11:34 GMT+02:00 Craig Small <csmall at debian.org>:
> > Hi,
> > That systemd unit is an old version which, I believe always had that
> > problem.
> >
> > The current version is at
> >
> https://salsa.debian.org/debian/net-snmp/blob/master/debian/snmpd.service
> > See the "-p /run/snmpd.pid" that's what you need.
> >
> > I suggest you either upgrade to the latest snmpd or use this file and
> put it
> > as /etc/systemd/system/snmpd.service
> >
> > - Craig
> >
> > --
> > Craig Small https://dropbear.xyz/ csmall at :
> dropbear.xyz
> > Debian GNU/Linux https://www.debian.org/ csmall at : debian.org
> > Mastodon: @smallsees at social.dropbear.xyz Twitter: @smallsees
> > GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5
>
>
>
> --
> Josu Lazkano
>
--
Craig Small https://dropbear.xyz/ csmall at : dropbear.xyz
Debian GNU/Linux https://www.debian.org/ csmall at : debian.org
Mastodon: @smallsees at social.dropbear.xyz Twitter: @smallsees
GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-net-snmp-devel/attachments/20180429/ec758722/attachment.html>
More information about the Pkg-net-snmp-devel
mailing list