free5GC Study -01
What is run.sh doing?
- enter UPF build folder & run program “free5gc-upfd”.
- run program “nrf”, “amf”, “smf”, “udr”, “pcf”, “udm”, “nssf”, “ausf”.
- run program “n3iwf”.
- kill all running processes when get SIGINT .
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








