This repository was archived by the owner on Jan 16, 2024. It is now read-only.
  
  
  
  
  
Description
START_SCRIPT is started in a subshell by one-contexd service which will block and wait for this subshell (its process child) to terminate - therefore if start script creates any long running process then it will halt the one-contexd service and OS boot.
The issue manifests with obvious example like running infinite loop in the start script (while true ; do :; done) but unfortunately this happens also in more sinister way when a command seemingly is finished and start script reach the end - the culprit in these cases are processes which fork or daemonize.
Therefore very useful commands like rc-service nginx start cause this too and cannot be used in the start script currently.
I failed to find any trick to avoid this problem - no amount of nohups, setsid, disown and any of their combination seemed to work.
Proposed solution is to not run START_SCRIPT and possibly other scripts in a subshell.