Question about starting and stopping services in entrypoint.sh

Dear all,

I don’t know if this question should be posted here, but I am giving it a go.

In the ENTRYPOINT.sh file of the project iwaseyusuke/docker-mininet (link below), I see that

I see that the service has a start and a stop in the same file

I am wondering why the stop service not stopping the service immediately after starting the service?
Is the file written this way for special purpose?
I cannot find anything online about starting and stopping one service in one entrypoint file.

Many Thanks in advance!!

I know what this is now. The commands before bash is simply the commands after the container starts. After running the two commands, the bash is then executed as the shell. After exiting the shell the system shutdown the service.