Some checks are pending
continuous-integration/drone/push Build is running
Closes: #36
87 lines
2.2 KiB
Text
87 lines
2.2 KiB
Text
[supervisord]
|
|
nodaemon=true
|
|
user=root
|
|
logfile=/var/log/happydeliver/supervisord.log
|
|
pidfile=/run/supervisord.pid
|
|
loglevel=info
|
|
|
|
[unix_http_server]
|
|
file=/run/supervisord.sock
|
|
chmod=0700
|
|
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
|
|
|
[supervisorctl]
|
|
serverurl=unix:///run/supervisord.sock
|
|
|
|
# syslogd service
|
|
[program:syslogd]
|
|
command=/sbin/syslogd -n
|
|
autostart=true
|
|
autorestart=true
|
|
priority=9
|
|
|
|
# Authentication Milter service
|
|
[program:authentication_milter]
|
|
command=/usr/local/bin/authentication_milter --pidfile /run/authentication_milter/authentication_milter.pid
|
|
autostart=true
|
|
autorestart=true
|
|
priority=10
|
|
stdout_logfile=/var/log/happydeliver/authentication_milter.log
|
|
stderr_logfile=/var/log/happydeliver/authentication_milter.log
|
|
user=mail
|
|
group=mail
|
|
|
|
# rspamd spam filter
|
|
[program:rspamd]
|
|
command=/usr/bin/rspamd -f -u rspamd -g mail
|
|
autostart=true
|
|
autorestart=true
|
|
priority=11
|
|
stdout_logfile=/var/log/happydeliver/rspamd.log
|
|
stderr_logfile=/var/log/happydeliver/rspamd_error.log
|
|
user=root
|
|
|
|
# SpamAssassin daemon
|
|
[program:spamd]
|
|
command=/usr/sbin/spamd --max-children 5 --helper-home-dir /var/lib/spamassassin --syslog stderr --pidfile /var/run/spamd.pid
|
|
autostart=true
|
|
autorestart=true
|
|
priority=12
|
|
stdout_logfile=/var/log/happydeliver/spamd.log
|
|
stderr_logfile=/var/log/happydeliver/spamd_error.log
|
|
user=root
|
|
|
|
# SpamAssassin milter
|
|
[program:spamass_milter]
|
|
command=/usr/local/sbin/spamass-milter -p /var/spool/postfix/spamassassin/spamass-milter.sock -m
|
|
autostart=true
|
|
autorestart=true
|
|
priority=7
|
|
stdout_logfile=/var/log/happydeliver/spamass-milter.log
|
|
stderr_logfile=/var/log/happydeliver/spamass-milter_error.log
|
|
user=mail
|
|
group=mail
|
|
umask=007
|
|
|
|
# Postfix service
|
|
[program:postfix]
|
|
command=/usr/sbin/postfix start-fg
|
|
autostart=true
|
|
autorestart=true
|
|
priority=20
|
|
stdout_logfile=/var/log/happydeliver/postfix.log
|
|
stderr_logfile=/var/log/happydeliver/postfix_error.log
|
|
user=root
|
|
|
|
# happyDeliver API server
|
|
[program:happydeliver-api]
|
|
command=/usr/local/bin/happyDeliver server -config /etc/happydeliver/config.yaml
|
|
autostart=true
|
|
autorestart=true
|
|
priority=30
|
|
stdout_logfile=/var/log/happydeliver/api.log
|
|
stderr_logfile=/var/log/happydeliver/api_error.log
|
|
user=happydeliver
|
|
environment=GIN_MODE="release"
|