Differences between revisions 1 and 2
Revision 1 as of 2022-08-21 16:48:19
Size: 954
Comment:
Revision 2 as of 2022-09-24 04:15:34
Size: 1029
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:

Most container base images will have a `supervisord` package available.

Supervisord


Installation

Most container base images will have a supervisord package available.


Configuration

The below configuration demonstrates starting a process that forks itself (crond(8)-see Cron) and starting a process through the userspace utility (Postfix).

[supervisord]
childlogdir=/var/log/supervisord
logfile=/dev/stderr
logfile_maxbytes=0
nodaemon=true
user=root

[program:crond]
autostart=true
command=crond -f -l 2
redirect_stderr=true


[program:postfix]
autorestart=false
command=postfix start
startsecs=0
redirect_stderr=true

Log to stderr

To redirect logging, set the logfile option within the [supervisord] section. If the logfile is a non-searchable pseudofile (such as /dev/stderr), then logfile_maxbytes must be set to 0.

[supervisord]
logfile=/dev/stderr
logfile_maxbytes=0


Administration


CategoryRicottone

Supervisord (last edited 2023-04-08 13:40:20 by DominicRicottone)