Skip to content

Commit

Permalink
Update dpdkbind.service with EnvironmentFile
Browse files Browse the repository at this point in the history
  • Loading branch information
sufuf3 committed Aug 6, 2018
1 parent 3aa026b commit 96a70be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions developers/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ echo "igb_uio" | sudo tee -a /etc/modules
# Bind secondary network adapter
# Note that this NIC setup will binding dpdk port after reboot
echo "ExecStart=/sbin/ifconfig ${NET_IF_NAME} down" | sudo tee -a /etc/systemd/system/dpdkbind.service
echo "ExecStart=${DPDK_DIR}/usertools/dpdk-devbind.py --bind=igb_uio ${NET_IF_NAME}" | sudo tee -a /etc/systemd/system/dpdkbind.service
echo 'NET_IF_NAME='${NET_IF_NAME} | sudo tee -a /etc/default/dpdkbind
sudo systemctl enable dpdkbind
sudo systemctl start dpdkbind
sudo ${DPDK_DIR}/usertools/dpdk-devbind.py --status
Expand Down
3 changes: 3 additions & 0 deletions developers/systemctl/dpdkbind.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ WantedBy=multi-user.target
[Service]
Type=oneshot
RemainAfterExit=true
EnvironmentFile=-/etc/default/dpdkbind
ExecStart=/sbin/ifconfig "$NET_IF_NAME" down
ExecStart=/usr/src/dpdk-stable-17.11.2/usertools/dpdk-devbind.py --bind=igb_uio "$NET_IF_NAME"

0 comments on commit 96a70be

Please sign in to comment.