Skip to content

Replace start.sh with supervisord #5

Description

@micolous

Supervisord is a Python daemon which is designed to run other (primarily Python-based) programs and keep them running in UNIX-like environments.

start.sh could be replaced with a supervisor configuration file (/etc/supervisord/doorlock.conf) like this:

[program:doorlock]
command=/usr/local/bin/doorlock.py
autostart=true
autorestart=true

This would enable the process to be controlled easily with the supervisorctl command:

# supervisorctl stop doorlock
# supervisorctl start doorlock
# supervisorctl restart doorlock

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions