Re: SNMP and PID file

2015-03-27 Thread Stuart Henderson
On 2015-03-26, Alex Naumov alexander_nau...@opensuse.org wrote: # /etc/rc.d/snmpd restart httpd2 (pid 29518) already running Weird. What are the contents of /etc/rc.d/snmpd?

Re: SNMP and PID file

2015-03-27 Thread Alex Naumov
On Fri, Mar 27, 2015 at 9:51 AM, Stuart Henderson s...@spacehopper.org wrote: On 2015-03-26, Alex Naumov alexander_nau...@opensuse.org wrote: # /etc/rc.d/snmpd restart httpd2 (pid 29518) already running Weird. What are the contents of /etc/rc.d/snmpd? #!/bin/sh # # $OpenBSD: snmpd,v 1.1

Re: SNMP and PID file

2015-03-27 Thread Stuart Henderson
On 2015/03/27 12:00, Alex Naumov wrote: On Fri, Mar 27, 2015 at 9:51 AM, Stuart Henderson s...@spacehopper.org wrote: On 2015-03-26, Alex Naumov alexander_nau...@opensuse.org wrote: # /etc/rc.d/snmpd restart httpd2 (pid 29518) already running Weird. What are the contents of

Re: SNMP and PID file

2015-03-26 Thread Alex Naumov
# /etc/rc.d/snmpd restart httpd2 (pid 29518) already running # uname -a OpenBSD name 5.2 GENERIC#278 i386 # ps aux | grep snmpd root 23284 0.0 0.1 556 980 ?? IsWed04PM0:00.00 snmpd: parent (snmpd) _snmpd 28300 0.0 0.1 676 1380 ?? I Wed04PM0:00.55 snmpd: snmp

Re: SNMP and PID file

2015-03-26 Thread Joshua Smith
You are running a pretty old ( 2 years) old version of openBSD. Perhaps it is a bug that has been fixed in a later release? On Thu, Mar 26, 2015 at 06:11:37PM +0100, Alex Naumov wrote: # /etc/rc.d/snmpd restart httpd2 (pid 29518) already running # uname -a OpenBSD name 5.2 GENERIC#278 i386

Re: SNMP and PID file

2015-03-26 Thread Alex Naumov
It will be interesting to find information about this bug, if it's really bug. I can't update this system... but it will be interesting to figure out why it happen ;) On Thu, Mar 26, 2015 at 7:04 PM, Joshua Smith jsm...@mail.wvnet.edu wrote: You are running a pretty old ( 2 years) old version of

SNMP and PID file

2015-03-25 Thread Alex Naumov
Hello, I just want to ask about snmpd(8). As I can see, snmpd don't create pid file in /var/run directory. Is it correct? How to reboot this daemon? There is just sock-file. Thank you, Alex

Re: SNMP and PID file

2015-03-25 Thread Joshua Smith
/etc/rc.d/snmpd restart always worked for me to restart snmpd. On Wed, Mar 25, 2015 at 06:02:30PM +0100, Alex Naumov wrote: Hello, I just want to ask about snmpd(8). As I can see, snmpd don't create pid file in /var/run directory. Is it correct? How to reboot this daemon? There is just

Re: SNMP and PID file

2015-03-25 Thread Kevin Chadwick
On Wed, 25 Mar 2015 18:02:30 +0100 Alex Naumov wrote: I just want to ask about snmpd(8). As I can see, snmpd don't create pid file in /var/run directory. Is it correct? How to reboot this daemon? There is just sock-file. It is more reliable to look up the PID from the list of processes which