Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
83
Issues
83
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
fdee6c9f
Commit
fdee6c9f
authored
May 26, 2020
by
Grzegorz Daniluk
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delay snmpd at startup to avoid spurious errors reported to syslog
parent
8c79c6a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
snmpd
userspace/rootfs_override/etc/init.d/snmpd
+9
-1
No files found.
userspace/rootfs_override/etc/init.d/snmpd
View file @
fdee6c9f
...
...
@@ -3,10 +3,10 @@
SNMP_PID
=
/var/run/snmpd.pid
SNMP_CONF
=
/etc/snmpd.conf
dotconfig
=
/wr/etc/dot-config
COUNTER_FILE
=
"/tmp/start_cnt_snmpd"
start_counter
()
{
# increase boot counter
COUNTER_FILE
=
"/tmp/start_cnt_snmpd"
START_COUNTER
=
1
if
[
-f
"
$COUNTER_FILE
"
]
;
then
...
...
@@ -37,6 +37,14 @@ start() {
LOG
=
"-L
$WRS_LOG
"
fi
if
[
!
-f
"
$COUNTER_FILE
"
]
;
then
# file doesn't exist yet so it's a boot call, delay to avoid spurious
# errors
echo
"Delaying the start of snmp daemon"
sleep
60
fi
# Log source address (-a)
start-stop-daemon
-q
-p
$SNMP_PID
-S
\
--exec
/usr/sbin/snmpd
--
$LOG
-p
$SNMP_PID
-a
-c
$SNMP_CONF
...
...
Adam Wujek
💬
@awujek
mentioned in issue
#211 (closed)
·
Aug 13, 2020
mentioned in issue
#211 (closed)
mentioned in issue #211
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment