Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 12, 2025

Implements supervisord to manage background processes (sshd, etc.) instead of the previous startup.sh + sleep infinity approach.

Changes

All OS runtimes (ubuntu/24.04, debian/12.6, ubuntu-cuda/24.04):

  • Added supervisord.conf configuring:

    • sshd as a managed daemon with auto-restart
    • setup script for one-time initialization (hostname, pod_id)
    • RPC interface for supervisorctl management
  • Updated Dockerfiles:

    • Install supervisor package
    • CMD changed from startup.sh to /usr/bin/supervisord
    • Ensure root user context for supervisord
  • Created setup.sh extracting one-time tasks from original startup.sh

Configuration

[program:sshd]
command=/usr/sbin/sshd -D
autostart=true
autorestart=true

[program:setup]
command=/usr/start/setup.sh
autorestart=false
startsecs=0
priority=0

Enables runtime process monitoring via supervisorctl status and easy addition of new managed processes.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • developer.download.nvidia.com
    • Triggering command: /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

尝试使用supervisord作为runtime启动命令,启动sshd等其他后台进程


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 12, 2025 08:16
- Added supervisord to manage background processes (sshd, etc.)
- Created supervisord.conf for ubuntu/24.04, debian/12.6, and ubuntu-cuda/24.04
- Created setup.sh to handle one-time initialization tasks
- Updated Dockerfiles to install supervisor and use it as the CMD
- Tested successfully with ubuntu/24.04 runtime

Co-authored-by: lingdie <[email protected]>
Copilot AI changed the title [WIP] Add supervisord as runtime startup command for sshd Replace startup.sh with supervisord for process management in OS runtimes Nov 12, 2025
Copilot AI requested a review from lingdie November 12, 2025 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants