From 89d5f4a30dddb3b95de4b8fd9bf6b8f472bb4769 Mon Sep 17 00:00:00 2001 From: jay817 Date: Mon, 5 May 2025 22:44:25 +0900 Subject: [PATCH] Add supervisor/README.md --- supervisor/README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 supervisor/README.md diff --git a/supervisor/README.md b/supervisor/README.md new file mode 100644 index 0000000..1152e47 --- /dev/null +++ b/supervisor/README.md @@ -0,0 +1,30 @@ +```sh +sudo apt install -y supervisor +supervisord -c supervisord.conf -n +``` + +```toml +[supervisord] +nodaemon=true +logfile=/dev/null +loglevel=critical + +[program:process1] +command=sh -c "while true; do echo hello; sleep 2; done" +autostart=true +autorestart=true +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 + +[program:process2] +command=sh -c "while true; do echo world; sleep 3; done" +autostart=true +autorestart=true +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 +``` +