mail-server/resources/systemd/stalwart-mail.service
2023-07-11 17:16:08 +02:00

21 lines
502 B
Desktop File

[Unit]
Description=Stalwart __TITLE__ Server
Conflicts=postfix.service sendmail.service exim4.service
ConditionPathExists=__PATH__/etc/config.toml
After=network-online.target
[Service]
Type=simple
LimitNOFILE=65536
KillMode=process
KillSignal=SIGINT
Restart=on-failure
RestartSec=5
ExecStart=__PATH__/bin/stalwart-__NAME__ --config=__PATH__/etc/config.toml
PermissionsStartOnly=true
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=stalwart-__NAME__
[Install]
WantedBy=multi-user.target