Files
k8scd/ansible/mailserver/roles/stalwart/templates/stalwart.service.j2
T
2026-03-14 22:24:53 +01:00

22 lines
538 B
Django/Jinja

[Unit]
Description=Stalwart Mail Server
Conflicts=postfix.service sendmail.service exim4.service
ConditionPathExists={{ stalwart_config_file_path }}
After=network-online.target
[Service]
Type=simple
LimitNOFILE=65536
KillMode=process
KillSignal=SIGINT
Restart=on-failure
RestartSec=5
ExecStart={{ stalwart_executable_path }} --config={{ stalwart_config_file_path }}
SyslogIdentifier=stalwart
User={{ stalwart_system_user }}
Group={{ stalwart_system_group }}
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target