mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-02-24 16:03:02 +08:00
22 lines
530 B
SYSTEMD
22 lines
530 B
SYSTEMD
|
[Unit]
|
||
|
Description=Stalwart SMTP
|
||
|
Conflicts=postfix.service sendmail.service exim4.service
|
||
|
ConditionPathExists=/usr/local/stalwart-smtp/etc/config.toml
|
||
|
After=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
LimitNOFILE=65536
|
||
|
KillMode=process
|
||
|
KillSignal=SIGINT
|
||
|
Restart=on-failure
|
||
|
RestartSec=5
|
||
|
ExecStart=/usr/local/stalwart-smtp/bin/stalwart-smtp --config=/usr/local/stalwart-smtp/etc/config.toml
|
||
|
PermissionsStartOnly=true
|
||
|
StandardOutput=syslog
|
||
|
StandardError=syslog
|
||
|
SyslogIdentifier=stalwart-smtp
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|