Sitemap

free5GC Study -01

1 min readAug 23, 2021

--

What is run.sh doing?

  1. enter UPF build folder & run program “free5gc-upfd”.
  2. run program “nrf”, “amf”, “smf”, “udr”, “pcf”, “udm”, “nssf”, “ausf”.
  3. run program “n3iwf”.
  4. kill all running processes when get SIGINT .
Press enter or click to view image in full size

Something else in run.sh

$! is the PID of the last program your shell ran in the background
$$ means the current PID

Get benben’s stories in your inbox

Join Medium for free to get updates from this writer.

sudo [-E] : Indicates to the security policy that the user wishes to preserve their existing environment variables.

command with ampersand(&) behind means the command running in background.

pgrep is a command used to find process ID with condition.
pgrep [-P] : Only match processes whose parent process ID is listed.

SIGINT is a terminate action called by user (Ctrl+c)
SIGTERM is a terminate signal.

reference

figure : https://www.free5gc.org/roadmap/
free5gc run.sh: https://github.com/free5gc/free5gc/blob/main/run.sh

--

--

benben
benben

交大網工所研究生|無線網際網路研究與工程實驗室|記錄一下研究生的生活><