Skip to content

Commit 41ae6e7

Browse files
olbjohefloryd
authored andcommitted
Change recommended startup timing
Extend recommended delay from start of snmpd to start of pn_dev application. This fixes an issue seen while running the ART Topology test where SNMP requests failed because the pn_dev snmpd integration had not been started.
1 parent b7e9216 commit 41ae6e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/additional_linux_details.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ the ``[Unit]`` part of your ``.service`` file::
230230
You might also need to add this to the ``[Service]`` part of your
231231
``.service`` file::
232232

233-
ExecStartPre=/usr/bin/sleep 0.3
233+
ExecStartPre=/usr/bin/sleep 1.0
234234

235235
If the P-Net application fails to connect to snmpd, a message "Warning: Failed
236236
to connect to the agentx master agent" will be written to the P-Net sample

src/ports/linux/pnet-sampleapp.service

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ExecStartPre=/sbin/ifconfig eth0 up
1313
ExecStartPre=/bin/sh -c '/bin/echo "49152 60999" > /proc/sys/net/ipv4/ip_local_port_range'
1414
ExecStartPre=/usr/bin/enable-rpi-gpio-pins.sh
1515
# Enable this line if waiting for snmpd to start
16-
#ExecStartPre=/usr/bin/sleep 0.3
16+
#ExecStartPre=/usr/bin/sleep 1.0
1717
WorkingDirectory=/home/pi/profinet/build/
1818
ExecStart=/home/pi/profinet/build/pn_dev -v -b /sys/class/gpio/gpio27/value -d /sys/class/gpio/gpio22/value
1919
# Use this instead for dual ports:

0 commit comments

Comments
 (0)