Skip to content

Commit

Permalink
Force hybrid mode packetd and classd
Browse files Browse the repository at this point in the history
  • Loading branch information
mikegee88 authored and smitropoulos-arista committed Feb 15, 2024
1 parent 6541f0b commit c938ef5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
8 changes: 2 additions & 6 deletions classd/files/classd.init
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@ start_service() {
# procd_set_param env GODEBUG=schedtrace=30000
# procd_set_param env GODEBUG=schedtrace=30000,scheddetail=1

# if not hybrid mode, start the packetd
if [ -e /etc/config/hybrid ]
then
# procd command to run
procd_set_param command /usr/bin/classd -mfw -w65536 -d
fi
# procd command to run
procd_set_param command /usr/bin/classd -mfw -w65536 -d

# restart indefinitely if crashed, 5 seconds between attempts
procd_set_param respawn 3600 5 0
Expand Down
23 changes: 10 additions & 13 deletions packetd/files/packetd.init
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,18 @@ start_service() {
# as output goes to logd which will add timestamps

# if not hybrid mode, start the packetd
if [ ! -e /etc/config/hybrid ]
if [ -e /etc/config/dpdk ]
then
if [ -e /etc/config/dpdk ]
then
# TODO if dpdk/bess is enabled we load packetd from bess as a dynamic library.
# But for not just start it normally.
procd_set_param command /usr/bin/packetd --no-timestamp
else
procd_set_param command /usr/bin/packetd --no-timestamp
fi
# procd_set_param command /usr/bin/packetd --logfile /tmp/log/packetd.log

# restart indefinitely if crashed, 5 seconds between attempts
procd_set_param respawn 3600 5 0
# TODO if dpdk/bess is enabled we load packetd from bess as a dynamic library.
# But for not just start it normally.
#procd_set_param command /usr/bin/packetd --no-timestamp
else
#procd_set_param command /usr/bin/packetd --no-timestamp
fi
# procd_set_param command /usr/bin/packetd --logfile /tmp/log/packetd.log

# restart indefinitely if crashed, 5 seconds between attempts
procd_set_param respawn 3600 5 0

# stdout to system log
procd_set_param stdout 1
Expand Down

0 comments on commit c938ef5

Please sign in to comment.